[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/karbon/widgets
From: Jan Hambrecht <jaham () gmx ! net>
Date: 2007-04-01 23:28:42
Message-ID: 1175470122.060444.28886.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 649066 by jaham:
derive from QFrame and ue QPushButtons instead of QToolButtons
M +14 -11 vtypebuttonbox.cc
M +2 -2 vtypebuttonbox.h
--- trunk/koffice/karbon/widgets/vtypebuttonbox.cc #649065:649066
@@ -205,8 +205,8 @@
#endif
-#include <qpixmap.h>
-#include <qtoolbutton.h>
+#include <QPixmap>
+#include <QPushButton>
#include <QToolTip>
#include <QButtonGroup>
#include <QGridLayout>
@@ -229,39 +229,42 @@
#include "vtypebuttonbox.h"
VTypeButtonBox::VTypeButtonBox( QWidget* parent )
- : QGroupBox( parent ), m_isStrokeManipulator( false )
+ : QFrame( parent ), m_isStrokeManipulator( false )
{
+ setFrameStyle( QFrame::GroupBoxPanel | QFrame::Sunken );
+ setMinimumSize( 50, 50 );
+
QGridLayout * layout = new QGridLayout( this );
QButtonGroup * group = new QButtonGroup( this );
// The button for no fill
- QToolButton* button = new QToolButton( this );
+ QPushButton* button = new QPushButton( this );
button->setIcon( QPixmap( (const char **) buttonnone ) );
- button->setMinimumSize( 14, 14 );
+ button->setMinimumHeight( 20 );
button->setToolTip( i18n( "None" ) );
group->addButton( button, None );
layout->addWidget( button, 0, 0 );
// The button for solid fill
- button = new QToolButton( this );
+ button = new QPushButton( this );
button->setIcon( QPixmap( (const char **) buttonsolid ) );
- button->setMinimumSize( 14, 14 );
+ button->setMinimumHeight( 20 );
button->setToolTip( i18n( "Solid" ) );
group->addButton( button, Solid );
layout->addWidget( button, 0, 1 );
// The button for gradient fill
- button = new QToolButton( this );
+ button = new QPushButton( this );
button->setIcon( QPixmap( (const char **) buttongradient ) );
- button->setMinimumSize( 14, 14 );
+ button->setMinimumHeight( 20 );
button->setToolTip( i18n( "Gradient" ) );
group->addButton( button, Gradient );
layout->addWidget( button, 1, 0 );
// The button for pattern fill
- button = new QToolButton( this );
+ button = new QPushButton( this );
button->setIcon( QPixmap( (const char **) buttonpattern ) );
- button->setMinimumSize( 14, 14 );
+ button->setMinimumHeight( 20 );
button->setToolTip( i18n( "Pattern" ) );
group->addButton( button, Pattern );
layout->addWidget( button, 1, 1 );
--- trunk/koffice/karbon/widgets/vtypebuttonbox.h #649065:649066
@@ -21,9 +21,9 @@
#ifndef __VTYPEBUTTONBOX_H__
#define __VTYPEBUTTONBOX_H__
-#include <QGroupBox>
+#include <QFrame>
-class VTypeButtonBox : public QGroupBox
+class VTypeButtonBox : public QFrame
{
Q_OBJECT
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic