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

List:       kde-commits
Subject:    KDE/kdebase/workspace/klipper
From:       Kevin Ottens <ervin () kde ! org>
Date:       2010-10-27 14:19:22
Message-ID: 20101027141922.E3074AC897 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1190382 by ervin:

KEditListBox is deprecated, use KEditListWidget + QGroupBox instead.


 M  +9 -4      configdialog.cpp  
 M  +2 -2      configdialog.h  


--- trunk/KDE/kdebase/workspace/klipper/configdialog.cpp #1190381:1190382
@@ -25,7 +25,7 @@
 #include <KMenu>
 #include <KShortcutsDialog>
 #include <KDebug>
-#include <KEditListBox>
+#include <KEditListWidget>
 
 #include <QHeaderView>
 
@@ -361,9 +361,12 @@
 {
     QVBoxLayout *mainLayout = new QVBoxLayout(this);
 
-    editListBox = new KEditListBox(i18n("D&isable Actions for Windows of Type WM_CLASS"), this);
+    QGroupBox *groupBox = new QGroupBox(i18n("D&isable Actions for Windows of Type WM_CLASS"), this);
+    groupBox->setLayout(new QVBoxLayout(groupBox));
 
-    editListBox->setButtons(KEditListBox::Add | KEditListBox::Remove);
+    editListBox = new KEditListWidget(groupBox);
+
+    editListBox->setButtons(KEditListWidget::Add | KEditListWidget::Remove);
     editListBox->setCheckAtEntering(true);
 
     editListBox->setWhatsThis(i18n("<qt>This lets you specify windows in which Klipper should "
@@ -373,8 +376,10 @@
                                    "Next, click on the window you want to examine. The "
                                    "first string it outputs after the equal sign is the one "
                                    "you need to enter here.</qt>"));
-    mainLayout->addWidget(editListBox);
+    groupBox->layout()->addWidget(editListBox);
 
+    mainLayout->addWidget(groupBox);
+
     editListBox->setFocus();
 }
 
--- trunk/KDE/kdebase/workspace/klipper/configdialog.h #1190381:1190382
@@ -32,7 +32,7 @@
 class KShortcutsEditor;
 class QPushButton;
 class Klipper;
-class KEditListBox;
+class KEditListWidget;
 class KActionCollection;
 class EditActionDialog;
 
@@ -96,7 +96,7 @@
     QStringList wmClasses() const;
 
 private:
-    KEditListBox *editListBox;
+    KEditListWidget *editListBox;
 };
 
 class ConfigDialog : public KConfigDialog
[prev in list] [next in list] [prev in thread] [next in thread] 

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