summaryrefslogtreecommitdiff
path: root/libopie/ocolorbutton.cpp
Unidiff
Diffstat (limited to 'libopie/ocolorbutton.cpp') (more/less context) (show whitespace changes)
-rw-r--r--libopie/ocolorbutton.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libopie/ocolorbutton.cpp b/libopie/ocolorbutton.cpp
index 96e5612..4734c0c 100644
--- a/libopie/ocolorbutton.cpp
+++ b/libopie/ocolorbutton.cpp
@@ -51,7 +51,10 @@ OColorButton::OColorButton ( QWidget *parent, const char *name )
51 connect ( d-> m_menu, SIGNAL( colorSelected ( const QColor & )), this, SLOT( updateColor ( const QColor & ))); 51 connect ( d-> m_menu, SIGNAL( colorSelected ( const QColor & )), this, SLOT( updateColor ( const QColor & )));
52 52
53 updateColor ( black ); 53 updateColor ( black );
54 setMinimumSize ( sizeHint ( ) + QSize ( 8, 0 )); 54
55 QSize s = sizeHint ( ) + QSize ( 12, 0 );
56 setMinimumSize ( s );
57 setMaximumSize ( s. width ( ) * 2, s. height ( ));
55} 58}
56 59
57OColorButton::~OColorButton ( ) 60OColorButton::~OColorButton ( )