[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [knipptasch] gui: initial usage/testing of ActionPanel from QSint.
From: Stefan_Böhmann <kde () hilefoks ! org>
Date: 2011-08-19 7:18:23
Message-ID: 20110819071823.5DE22A60CE () git ! kde ! org
[Download RAW message or body]
Git commit 8c250e505d358096f97a1a81d97ff16d0c74777e by Stefan Böhmann.
Committed on 17/08/2011 at 23:08.
Pushed by sboehmann into branch 'master'.
initial usage/testing of ActionPanel from QSint.
M +8 -0 gui/accountwidget.cpp
M +15 -6 gui/accountwidget.ui
M +7 -1 gui/CMakeLists.txt
http://commits.kde.org/knipptasch/8c250e505d358096f97a1a81d97ff16d0c74777e
diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt
index d7ae6b3..b1081ac 100644
--- a/gui/CMakeLists.txt
+++ b/gui/CMakeLists.txt
@@ -1,5 +1,7 @@
project( knipptasch )
+include_directories( ../3rdparty/qsint/include )
+
set(knipptasch_SOURCES
accountwidget.cpp
welcomewidget.cpp
@@ -68,7 +70,10 @@ if( HAVE_KDE )
${KDE4_KDEUI_LIBS}
${QT_QTTEST_LIBRARY}
${QCA2_LIBRARIES}
- knipptasch compat modeltest
+ knipptasch
+ compat
+ modeltest
+ qsint
)
set_target_properties( knipptasch-bin PROPERTIES OUTPUT_NAME knipptasch )
@@ -104,6 +109,7 @@ else( HAVE_KDE )
knipptasch
compat
modeltest
+ qsint
)
set_target_properties( knipptasch-bin PROPERTIES OUTPUT_NAME knipptasch )
diff --git a/gui/accountwidget.cpp b/gui/accountwidget.cpp
index 8e5c12f..8ee9d10 100644
--- a/gui/accountwidget.cpp
+++ b/gui/accountwidget.cpp
@@ -119,6 +119,14 @@ AccountWidget::AccountWidget( MainWindow *mainWindow )
ui->view->horizontalHeader()->installEventFilter( this );
ui->view->installEventFilter( this );
+ ui->actionPanel->setScheme( QSint::WinXPPanelScheme::defaultScheme() );
+ QSint::ActionGroup *group1 = \
ui->actionPanel->createGroup(QPixmap(":/res/filesave.png"), "Expandable Group"); + \
group1->addWidget(new QPushButton("Just a button", this)); + \
//group1->addAction(ui->actionSave); + //group1->addAction(ui->actionPrint);
+ ui->actionPanel->addStretch();
+
+
connect( ui->view->horizontalHeader(), SIGNAL( sectionDoubleClicked( int ) ), \
this, SLOT( onResizeColumnToContents( int ) ) );
connect( ui->view->horizontalHeader(), SIGNAL( sectionMoved( int, int, int ) ), \
this, SLOT( saveConfig() ) );
connect( ui->view->horizontalHeader(), SIGNAL( sectionResized( int, int, int ) \
), this, SLOT( saveConfig() ) );
diff --git a/gui/accountwidget.ui b/gui/accountwidget.ui
index 00bb023..de54901 100644
--- a/gui/accountwidget.ui
+++ b/gui/accountwidget.ui
@@ -7,17 +7,17 @@
<rect>
<x>0</x>
<y>0</y>
- <width>853</width>
- <height>374</height>
+ <width>1014</width>
+ <height>523</height>
</rect>
</property>
- <layout class="QVBoxLayout" name="verticalLayout_2">
- <item>
+ <layout class="QGridLayout" name="gridLayout">
+ <item row="0" column="1">
<widget class="QSplitter" name="splitter">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
- <widget class="QWidget" name="">
+ <widget class="QWidget" name="layoutWidget">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QFrame" name="styleframe">
@@ -110,7 +110,7 @@
</widget>
</widget>
</item>
- <item>
+ <item row="1" column="1">
<widget class="QWidget" name="searchWidget" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="topMargin">
@@ -151,6 +151,9 @@
</layout>
</widget>
</item>
+ <item row="0" column="0" rowspan="2">
+ <widget class="QSint::ActionPanel" name="actionPanel" native="true"/>
+ </item>
</layout>
</widget>
<customwidgets>
@@ -165,6 +168,12 @@
<header>ktabwidget.h</header>
<container>1</container>
</customwidget>
+ <customwidget>
+ <class>QSint::ActionPanel</class>
+ <extends>QWidget</extends>
+ <header>QSint</header>
+ <container>1</container>
+ </customwidget>
</customwidgets>
<resources/>
<connections/>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic