[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdemultimedia/kmid
From: Laurent Montel <montel () kde ! org>
Date: 2003-10-27 10:12:35
[Download RAW message or body]
CVS commit by mlaurent:
Use kstdguiitem
M +10 -9 collectdlg.cpp 1.27
M +3 -2 collectdlg.h 1.6
--- kdemultimedia/kmid/collectdlg.cpp #1.26:1.27
@@ -32,5 +32,6 @@
#include <kmessagebox.h>
#include <kurl.h>
-
+#include <kpushbutton.h>
+#include <kstdguiitem.h>
#include "collectdlg.h"
#include "version.h"
@@ -41,8 +42,8 @@ CollectionDialog::CollectionDialog(SLMan
{
setCaption(i18n("Collections Manager"));
-ok=new QPushButton(i18n("&OK"),this);
+ok=new KPushButton(KStdGuiItem::ok(),this);
ok->setGeometry(140,200,100,30);
connect(ok,SIGNAL(clicked()),SLOT(accept()) );
-cancel=new QPushButton(i18n("&Cancel"),this);
+cancel=new KPushButton(KStdGuiItem::cancel(),this);
cancel->setGeometry(250,200,100,30);
connect(cancel,SIGNAL(clicked()),SLOT(reject()) );
--- kdemultimedia/kmid/collectdlg.h #1.5:1.6
@@ -30,4 +30,5 @@
class QLabel;
+class KPushButton;
class QPushButton;
class QListBox;
@@ -63,6 +64,6 @@ private:
QLabel *label;
QLabel *label2;
-QPushButton *ok;
-QPushButton *cancel;
+KPushButton *ok;
+KPushButton *cancel;
QListBox *collections;
QListBox *songs;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic