Diffstat (limited to 'noncore/settings/appearance2/editScheme.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/appearance2/editScheme.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/settings/appearance2/editScheme.cpp b/noncore/settings/appearance2/editScheme.cpp index 0f3702f..18c69a5 100644 --- a/noncore/settings/appearance2/editScheme.cpp +++ b/noncore/settings/appearance2/editScheme.cpp | |||
@@ -35,25 +35,26 @@ | |||
35 | #include <qscrollview.h> | 35 | #include <qscrollview.h> |
36 | #include <qtoolbutton.h> | 36 | #include <qtoolbutton.h> |
37 | #include <qwhatsthis.h> | 37 | #include <qwhatsthis.h> |
38 | 38 | ||
39 | using namespace Opie::Ui; | ||
39 | EditScheme::EditScheme ( int cnt, const QString *labels, QColor *colors, QWidget* parent, const char* name, bool modal, WFlags ) | 40 | EditScheme::EditScheme ( int cnt, const QString *labels, QColor *colors, QWidget* parent, const char* name, bool modal, WFlags ) |
40 | : QDialog ( parent, name, modal, WStyle_ContextHelp ) | 41 | : QDialog ( parent, name, modal, WStyle_ContextHelp ) |
41 | { | 42 | { |
42 | setCaption ( tr( "Edit scheme" ) ); | 43 | setCaption ( tr( "Edit scheme" ) ); |
43 | QGridLayout *layout = new QGridLayout ( this, 0, 0, 4, 4 ); | 44 | QGridLayout *layout = new QGridLayout ( this, 0, 0, 4, 4 ); |
44 | 45 | ||
45 | m_count = cnt; | 46 | m_count = cnt; |
46 | m_buttons = new OColorButton * [cnt]; | 47 | m_buttons = new Opie::OColorButton * [cnt]; |
47 | m_colors = colors; | 48 | m_colors = colors; |
48 | 49 | ||
49 | for ( int i = 0; i < cnt; i++ ) | 50 | for ( int i = 0; i < cnt; i++ ) |
50 | { | 51 | { |
51 | QLabel *l = new QLabel ( labels [i], this ); | 52 | QLabel *l = new QLabel ( labels [i], this ); |
52 | layout-> addWidget ( l, i, 0 ); | 53 | layout-> addWidget ( l, i, 0 ); |
53 | QWhatsThis::add( l, tr( "Click here to select a color for: " ).arg( labels [i] ) ); | 54 | QWhatsThis::add( l, tr( "Click here to select a color for: " ).arg( labels [i] ) ); |
54 | 55 | ||
55 | m_buttons [i] = new OColorButton ( this, colors [i] ); | 56 | m_buttons [i] = new Opie::OColorButton ( this, colors [i] ); |
56 | layout-> addWidget ( m_buttons [i], i, 1 ); | 57 | layout-> addWidget ( m_buttons [i], i, 1 ); |
57 | QWhatsThis::add( m_buttons [i], tr( "Click here to select a color for: " ).arg( labels [i] ) ); | 58 | QWhatsThis::add( m_buttons [i], tr( "Click here to select a color for: " ).arg( labels [i] ) ); |
58 | } | 59 | } |
59 | } | 60 | } |