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

List:       kde-commits
Subject:    koffice/kexi/main
From:       Lorenzo Villani <lvillani () binaryhelix ! net>
Date:       2008-11-07 21:18:04
Message-ID: 1226092684.968712.28580.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 881360 by villani:

- Fix some deprecation warnings
- TODO: QApplication::setMainWidget(win); is still there but it's deprecated

CCMAIL: js@iidea.pl


 M  +5 -5      KexiMainWindow.cpp  


--- trunk/koffice/kexi/main/KexiMainWindow.cpp #881359:881360
@@ -284,7 +284,7 @@
     }
 
     KexiMainWindow *win = new KexiMainWindow();
-    QApplication::setMainWidget(win);
+    QApplication::setMainWidget(win); // FIXME: Deprecated method
 #ifdef KEXI_DEBUG_GUI
     //if (debugWindow)
     //debugWindow->reparent(win, QPoint(1,1));
@@ -3103,7 +3103,7 @@
 //! @todo use KRun
     args << fileName;
     Q3Process proc(args, this, "process");
-    proc.setWorkingDirectory(QFileInfo(fileName).dir(true));
+    proc.setWorkingDirectory(QFileInfo(fileName).absoluteDir());
     const bool ok = proc.start();
     if (!ok) {
         d->showStartProcessMsg(args);
@@ -4326,7 +4326,7 @@
         bool preservePrevSelection, const QByteArray& propertyToSelect)
 {
     kDebug() << "KexiMainWindow::propertySetSwitched() currentWindow(): "
-    << (currentWindow() ? currentWindow()->caption() : QString("NULL")) << " window: \
" << (window ? window->caption() : QString("NULL")); +    << (currentWindow() ? \
currentWindow()->windowTitle() : QString("NULL")) << " window: " << (window ? \
window->windowTitle() : QString("NULL"));  if (currentWindow() != window) {
         d->propBuffer = 0; //we'll need to move to another prop. set
         return;
@@ -4976,7 +4976,7 @@
     d->findDialog()->setReplaceMode(false);
 
     d->findDialog()->show();
-    d->findDialog()->setActiveWindow();
+    d->findDialog()->activateWindow();
     d->findDialog()->raise();
 }
 
@@ -5012,7 +5012,7 @@
     d->findDialog()->setReplaceMode(true);
 //! @todo slotEditReplace()
     d->findDialog()->show();
-    d->findDialog()->setActiveWindow();
+    d->findDialog()->activateWindow();
 }
 
 void KexiMainWindow::slotEditReplaceNext()


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

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