[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdegraphics/kpaint
From: Nadeem Hasan <nhasan () nadmm ! com>
Date: 2003-01-12 15:07:37
[Download RAW message or body]
CVS commit by nhasan:
More use of KDialogBase. This app is so much broken. Fixes to follow.
M +5 -7 palettedialog.cpp 1.12
M +3 -3 palettedialog.h 1.4
--- kdegraphics/kpaint/palettedialog.cpp #1.11:1.12
@@ -9,17 +9,15 @@
paletteDialog::paletteDialog(QPixmap *p, QWidget *parent, const char *name)
- : QDialog(parent, name, TRUE)
+ : KDialogBase(parent, name, true, i18n( "Edit Palette" ), Ok|Cancel,
+ Ok, true)
{
resize(340, 280);
- QVBoxLayout *box = new QVBoxLayout( this, 10 );
+ QWidget *w = makeMainWidget();
+ QVBoxLayout *box = new QVBoxLayout( w, 0 );
- pal= new paletteWidget(p, this);
+ pal= new paletteWidget(p, w);
pal->move(10, 10);
box->addWidget( pal );
- QPushButton *dismiss = new QPushButton( i18n("Dismiss"), this );
- box->addWidget( dismiss );
-
- connect( dismiss, SIGNAL(clicked()), SLOT(accept()) );
connect( pal, SIGNAL(colourSelected(int)), pal, SLOT(editColour(int)) );
}
--- kdegraphics/kpaint/palettedialog.h #1.3:1.4
@@ -4,8 +4,8 @@
#define PALETTEDIALOG_H
-#include <qdialog.h>
+#include <kdialogbase.h>
#include "palette.h"
-class paletteDialog : public QDialog
+class paletteDialog : public KDialogBase
{
Q_OBJECT
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic