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

List:       kde-commits
Subject:    kdebase/kfind
From:       Frerich Raabe <raabe () kde ! org>
Date:       2004-03-09 16:02:43
Message-ID: 20040309160243.AA720999B () office ! kde ! org
[Download RAW message or body]

CVS commit by raabe: 

- Create About dialog on demand (in KfindDlg::about()), not in the ctor.
  Speeds up startup.


  M +2 -3      kfinddlg.cpp   1.21
  M +0 -2      kfinddlg.h   1.10


--- kdebase/kfind/kfinddlg.cpp  #1.20:1.21
@@ -87,5 +87,4 @@ KfindDlg::KfindDlg(const KURL & url, QWi
           SLOT(addFile(const KFileItem*,const QString&)));
   connect(query, SIGNAL(result(int)), SLOT(slotResult(int)));
-  aboutWin = new KAboutApplication(this, "about", true);
 
   dirwatch=NULL;
@@ -228,6 +227,6 @@ void KfindDlg::copySelection()
 void  KfindDlg::about ()
 {
-  aboutWin->show(this);
-  //delete aboutWin;
+  KAboutApplication dlg(this, "about", true);
+  dlg.show();
 }
 

--- kdebase/kfind/kfinddlg.h  #1.9:1.10
@@ -20,5 +20,4 @@ class KfindTabWidget;
 class KfindWindow;
 class KStatusBar;
-class KAboutApplication;
 
 class KfindDlg: public KDialogBase
@@ -58,5 +57,4 @@ private:
   KfindTabWidget *tabWidget;
   KfindWindow * win;
-  KAboutApplication * aboutWin;
 
   bool isResultReported;


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

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