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

List:       kde-commits
Subject:    koffice/libs/kopalette
From:       Laurent Montel <montel () kde ! org>
Date:       2006-03-27 17:13:35
Message-ID: 1143479615.727469.3738.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 523228 by mlaurent:

Minor fix


 M  +4 -3      kopalettemanager.cc  


--- trunk/koffice/libs/kopalette/kopalettemanager.cc #523227:523228
@@ -41,6 +41,7 @@
 
 #include <kopalettemanager.h>
 
+#include <QDesktopWidget>
 
 KoPaletteManager::KoPaletteManager(KoView * view, KActionCollection *ac, const char * name)
     : QObject(view, name)
@@ -440,7 +441,7 @@
 void KoPaletteManager::slotTogglePalette(int paletteIndex)
 {
     // Toggle the right palette
-    QString name = *m_widgetNames->at(paletteIndex);
+    QString name = m_widgetNames->at(paletteIndex);
     QWidget * w = m_widgets->find(name);
     QString pname = *m_currentMapping->find(name);
     KoPalette * p = m_palettes->find(pname);
@@ -552,12 +553,12 @@
         else {
             cfg->writeEntry("dockarea", "right");
         }
-        cfg->writeEntry("place", p->place());
+        cfg->writeEntry("place", (int)p->place());
         cfg->writeEntry("x", p->x());
         cfg->writeEntry("y", p->y());
         cfg->writeEntry("height", p->height());
         cfg->writeEntry("width", p->width());
-        cfg->writeEntry("palettestyle", p->style());
+        cfg->writeEntry("palettestyle", (int)p->style());
         cfg->writeEntry("caption", p->caption());
         cfg->writeEntry("offset", p->offset());
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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