[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenetwork/kdict
From:       Zack Rusin <zack () kde ! org>
Date:       2004-09-28 4:32:43
Message-ID: 20040928043243.C096D9961 () office ! kde ! org
[Download RAW message or body]

CVS commit by zrusin: 

Don't be writting all that useless html at startup. Shaves 1/3 of the startup
time. Which is still way to long but better. Also don't use deprecated 
method.


  M +0 -5      matchview.cpp   1.11
  M +2 -5      queryview.cpp   1.16
  M +1 -3      queryview.h   1.9
  M +0 -6      toplevel.cpp   1.27
  M +0 -1      toplevel.h   1.11


--- kdenetwork/kdict/queryview.cpp  #1.15:1.16
@@ -54,5 +54,5 @@ SaveHelper::~SaveHelper()
     if (tmpFile) {      // network location, initiate transaction
       tmpFile->close();
-      if (KIO::NetAccess::upload(tmpFile->name(),url) == false)
+      if (KIO::NetAccess::upload(tmpFile->name(),url, p_arent) == false)
          KMessageBox::error(global->topLevel, i18n("Unable to save remote file."));
       tmpFile->unlink();   // delete temp file
@@ -150,7 +149,5 @@ QueryView::QueryView(QWidget *_parent)
           this,SLOT(slotURLRequest(const KURL &,const KParts::URLArgs &)));
   connect(part->browserExtension(),SIGNAL(enableAction(const char \
                *,bool)),this,SLOT(enableAction(const char *,bool)));
-
-  optionsChanged();              // for setting the background etc.
-
+  QTimer::singleShot( 0, this, SLOT(optionsChanged()) );
   connect(interface,SIGNAL(resultReady(const QString &)), SLOT(resultReady(const \
QString &)));  }

--- kdenetwork/kdict/queryview.h  #1.8:1.9
@@ -110,10 +110,8 @@ public:
   bool browseForwardPossible() const;
 
-  void optionsChanged();
-
   void stop();
 
 public slots:
-
+  void optionsChanged();
   void printQuery();
   void saveQuery();


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic