code clean master
authorMarcin Kaźmierczak <marcin@marcin-desktop.(none)>
Tue, 1 Mar 2011 10:25:30 +0000 (11:25 +0100)
committerMarcin Kaźmierczak <marcin@marcin-desktop.(none)>
Tue, 1 Mar 2011 10:25:30 +0000 (11:25 +0100)
13 files changed:
src/mdictionary/backbone/backbone.h
src/mdictionary/gui/SettingsWidget.cpp
src/mdictionary/qml/GoogleDialog.qml
src/mdictionary/qml/IconButton.qml
src/mdictionary/qml/SearchBarWidget.qml
src/mdictionary/qml/StarDictDialog.qml
src/plugins/google/GooglePlugin.cpp
src/plugins/stardict/StarDialog.cpp
src/plugins/stardict/StarDictPlugin.cpp
src/plugins/xdxf/DictsListModel.cpp
src/plugins/xdxf/XdxfDialog.cpp
src/plugins/xdxf/XdxfDictDownloadProgressDialog.cpp
src/plugins/xdxf/XdxfDictDownloader.cpp

index f59bc3d..4b9ecec 100644 (file)
@@ -231,7 +231,6 @@ public Q_SLOTS:
         _bookmarkSearchWatcher.setFuture(_innerBookmarks);
 
         Q_EMIT bookmarkMode();
-        qDebug()<<"1";
    }
 
    /*! Sets settings for backbone: history_size, search_limit,
index bb070f2..4c37017 100644 (file)
@@ -321,7 +321,6 @@ void SettingsWidget::changed() {
 #ifndef Q_WS_MAEMO_5
     void SettingsWidget::save() {
         _save = true;
-        qDebug()<<"tuuu";
         hide();
     }
 #endif
index 77fef8d..c41a87d 100644 (file)
@@ -33,10 +33,10 @@ Rectangle{
 
     function setFocus(){
         if(focusIndex==0){
-            console.log("01");
+            comboFrom.focus = true;
         }
         if(focusIndex==1){
-            console.log("02");
+            comboTo.focus = true;
         }
         if(focusIndex==2){
             revertButton.focus = true
index 4ac2ee7..e6e5f37 100644 (file)
@@ -13,7 +13,7 @@ Rectangle {
     radius: 50
 
     Keys.onReturnPressed: {
-        button.clicked();
+        rectangle.clicked();
     }
 
     MouseArea {
index 40d33e6..6590e45 100644 (file)
@@ -20,7 +20,6 @@ Rectangle {
     function setCompleterText(string) { inputSearchText.setCompleter(string) }
 
     function setFocus(){
-        console.log("setFocus");
         if(focusIndex==0){
             inputSearchText.setFocus();
             if(!inputSearchText.enabled)
index b2e75db..b1efd50 100644 (file)
@@ -50,7 +50,6 @@ Rectangle{
 
     onHeightChanged:{
         heightChange((newPlugin ? textPath.height+50 : textInfo.height+50));
-        //console.log( "debug" + (newPlugin ? textPath.paintedHeight+55 : textInfo.paintedHeight+55));
     }
 
     SystemPalette { id: myPalette; colorGroup: SystemPalette.Active }
index 733a51f..3c3ff11 100644 (file)
@@ -218,7 +218,6 @@ QList<Translation*> GooglePlugin::searchWordList(QString word, int ) {
         }
 
         QString text = QString::fromUtf8(http->readAll());
-//        qDebug()<<"google test"<<text;
         text=jsonParse(text);
         if(text!="") {
             text="<key>" + word + "</key>" + "<t>" + text + "</t>";
index fcfa6be..baf11d3 100644 (file)
@@ -205,8 +205,6 @@ void StarDialog::selectFile() {
         else
             _isCompressed = false;
 #ifndef Q_WS_MAEMO_5
-     //   qDebug()<<"hint"<<view->sizeHint();
-      //  qDebug()<<"size"<<view->size();
         resize(view->sizeHint());
 
 #else
index 229cff4..a6b3c9f 100644 (file)
@@ -132,7 +132,6 @@ QList<Translation*> StarDictPlugin::searchWordList(QString word, int limit) {
 
         if(keyword.exactMatch(fkey) ) {
             TranslationStarDict tran(fkey, infoNote(), this);
-  //        qDebug() << "off/len" << offset << len;
             int id = translations.indexOf(tran);
             if(id == -1) {
                 tran.add(offset, len);
@@ -168,7 +167,6 @@ QByteArray StarDictPlugin::read(QByteArray::iterator it,
 QString StarDictPlugin::interpret(QByteArray::iterator it,
         QByteArray::iterator end, QChar mode,QString key, bool) {
     QString result;
-//    qDebug()<<"****** mode:     "<<mode;
     if(mode == 'm'
             || mode == 'l'
             || mode == 'g'
index f4b5b99..765ad87 100644 (file)
@@ -54,7 +54,6 @@ QVariant DictsListModel::data(const QModelIndex & index, int role) const {
 
 
 QVariant DictsListModel::headerData(int section, Qt::Orientation orientation, int role) const{
-    qDebug()<<"tu jestem"<< role;
 
     if (role == FromRole){
         return "From";
index 7053030..80af106 100644 (file)
@@ -296,7 +296,6 @@ void XdxfDialog::initializeUI() {
 
 
 void XdxfDialog::setAccents(bool accents) {
-    qDebug()<<"setAcents"<<accents;
     _accents = accents;
 }
 
@@ -346,7 +345,6 @@ void XdxfDialog::selectFile() {
 
 void XdxfDialog::fileDownloaded(QString) {
 #ifndef Q_WS_MAEMO_5
-    qDebug()<<"fileDownloaded";
     emit setPath(tr("Dictionary file: %1").arg(XdxfPlugin::dictDownloader.downloadedFile()));
     _dictionaryFilePath = XdxfPlugin::dictDownloader.downloadedFile();
 #else
index 69a47f0..bb8d6c4 100644 (file)
@@ -120,7 +120,6 @@ void XdxfDictDownloadProgressDialog::updateProgress(float progress) {
 
 
 void XdxfDictDownloadProgressDialog::reject() {
-    qDebug("tu");
     #ifndef Q_WS_MAEMO_5
         emit cancelDownloading();
         emit setValue(-1);
index 2b41d0b..57227b1 100644 (file)
@@ -173,7 +173,6 @@ void XdxfDictDownloader::dictListReceived(QNetworkReply *reply) {
     XdxfDictSelectDialog selectDialog(dicts, parentDialog);
 
     if(selectDialog.exec()==QDialog::Accepted) {
-        qDebug()<<"etap 3.2";
         progressDialog->setText(tr("Downloading dictionary"));
         progressDialog->show();