Diffstat (limited to 'noncore/settings/appearance2/editScheme.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/appearance2/editScheme.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/noncore/settings/appearance2/editScheme.cpp b/noncore/settings/appearance2/editScheme.cpp index c2e5355..eefeccc 100644 --- a/noncore/settings/appearance2/editScheme.cpp +++ b/noncore/settings/appearance2/editScheme.cpp @@ -31,43 +31,42 @@ #include <opie/ocolorbutton.h> #include <qaction.h> #include <qlabel.h> #include <qlayout.h> #include <qpopupmenu.h> #include <qscrollview.h> #include <qtoolbutton.h> EditScheme::EditScheme ( int cnt, const QString *labels, QColor *colors, QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog ( parent, name, modal, fl ) { setCaption ( tr( "Edit scheme" ) ); QGridLayout *layout = new QGridLayout ( this, 0, 0, 4, 4 ); m_count = cnt; m_buttons = new OColorButton * [cnt]; m_colors = colors; for ( int i = 0; i < cnt; i++ ) { QLabel *l = new QLabel ( labels [i], this ); layout-> addWidget ( l, i, 0 ); - m_buttons [i] = new OColorButton ( this ); - m_buttons [i]-> setColor ( colors [i] ); + m_buttons [i] = new OColorButton ( this, colors [i] ); layout-> addWidget ( m_buttons [i], i, 1 ); } } EditScheme::~EditScheme ( ) { delete [] m_buttons; } void EditScheme::accept ( ) { for ( int i = 0; i < m_count; i++ ) m_colors [i] = m_buttons [i]-> color ( ); QDialog::accept ( ); } |