[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kdeprint
From: Nadeem Hasan <nhasan () nadmm ! com>
Date: 2003-05-06 2:20:55
[Download RAW message or body]
CVS commit by nhasan:
QPushButton -> QToolButton
QPixmap -> QIconSet
M +13 -14 kfilelist.cpp 1.11
M +2 -2 kfilelist.h 1.5
--- kdelibs/kdeprint/kfilelist.cpp #1.10:1.11
@@ -20,10 +20,9 @@
#include "kfilelist.h"
-#include <qpushbutton.h>
+#include <qtoolbutton.h>
#include <qlabel.h>
#include <qlayout.h>
#include <qdragobject.h>
#include <qtooltip.h>
-#include <qregexp.h>
#include <qheader.h>
@@ -52,29 +51,29 @@ KFileList::KFileList(QWidget *parent, co
connect(m_files, SIGNAL(selectionChanged()), SLOT(slotSelectionChanged()));
- m_add = new QPushButton(this);
- m_add->setPixmap(SmallIcon("fileopen"));
+ m_add = new QToolButton(this);
+ m_add->setIconSet(SmallIconSet("fileopen"));
connect(m_add, SIGNAL(clicked()), SLOT(slotAddFile()));
QToolTip::add(m_add, i18n("Add File"));
- m_remove = new QPushButton(this);
- m_remove->setPixmap(SmallIcon("remove"));
+ m_remove = new QToolButton(this);
+ m_remove->setIconSet(SmallIconSet("remove"));
connect(m_remove, SIGNAL(clicked()), SLOT(slotRemoveFile()));
QToolTip::add(m_remove, i18n("Remove File"));
m_remove->setEnabled(false);
- m_open = new QPushButton(this);
- m_open->setPixmap(SmallIcon("filefind"));
+ m_open = new QToolButton(this);
+ m_open->setIconSet(SmallIconSet("filefind"));
connect(m_open, SIGNAL(clicked()), SLOT(slotOpenFile()));
QToolTip::add(m_open, i18n("Open File"));
m_open->setEnabled(false);
- m_up = new QPushButton(this);
- m_up->setPixmap(SmallIcon("up"));
+ m_up = new QToolButton(this);
+ m_up->setIconSet(SmallIconSet("up"));
connect(m_up, SIGNAL(clicked()), SLOT(slotUp()));
QToolTip::add(m_up, i18n("Move Up"));
m_up->setEnabled(false);
- m_down = new QPushButton(this);
- m_down->setPixmap(SmallIcon("down"));
+ m_down = new QToolButton(this);
+ m_down->setIconSet(SmallIconSet("down"));
connect(m_down, SIGNAL(clicked()), SLOT(slotDown()));
QToolTip::add(m_down, i18n("Move Down"));
@@ -87,6 +86,6 @@ KFileList::KFileList(QWidget *parent, co
"Leave empty for <b><STDIN></b>."));
- QHBoxLayout *l0 = new QHBoxLayout(this, 0, 5);
- QVBoxLayout *l1 = new QVBoxLayout(0, 0, 0);
+ QHBoxLayout *l0 = new QHBoxLayout(this, 0, KDialog::spacingHint());
+ QVBoxLayout *l1 = new QVBoxLayout(0, 0, 1);
l0->addWidget(m_files);
l0->addLayout(l1);
--- kdelibs/kdeprint/kfilelist.h #1.4:1.5
@@ -25,5 +25,5 @@
class KListView;
-class QPushButton;
+class QToolButton;
class QListViewItem;
@@ -55,5 +55,5 @@ protected:
private:
KListView *m_files;
- QPushButton *m_add, *m_remove, *m_open, *m_up, *m_down;
+ QToolButton *m_add, *m_remove, *m_open, *m_up, *m_down;
bool m_block;
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic