[uim-commit] r577 - trunk/qt
kzk at freedesktop.org
kzk at freedesktop.org
Sun Feb 6 10:57:51 PST 2005
Author: kzk
Date: 2005-02-06 10:57:48 -0800 (Sun, 06 Feb 2005)
New Revision: 577
Modified:
trunk/qt/pref-qt.cpp
Log:
* qt/pref-qt.cpp
- (UimPrefDialog::createMainWidgets())
: more KDE suitable GUI, like konqueror configure dialog
Modified: trunk/qt/pref-qt.cpp
===================================================================
--- trunk/qt/pref-qt.cpp 2005-02-06 18:43:53 UTC (rev 576)
+++ trunk/qt/pref-qt.cpp 2005-02-06 18:57:48 UTC (rev 577)
@@ -98,6 +98,7 @@
QSplitter *mainSplitter = new QSplitter( this );
+ /* ListView */
m_groupListView = new QListView( mainSplitter );
m_groupListView->addColumn( _("Group") );
m_groupListView->setSelectionMode( QListView::Single );
@@ -105,10 +106,15 @@
QObject::connect( m_groupListView, SIGNAL(selectionChanged( QListViewItem * )),
this, SLOT(slotSelectionChanged( QListViewItem * )) );
- QWidget *leftSideWidget = new QWidget( mainSplitter );
- QVBoxLayout *leftVLayout = new QVBoxLayout( leftSideWidget );
- QWidget *buttonHWidget = new QWidget( leftSideWidget );
- m_groupWidgetStack = new QWidgetStack( leftSideWidget );
+ /* Contents Frame */
+ QWidget *rightSideWidget = new QWidget( mainSplitter );
+ QVBoxLayout *rightVLayout = new QVBoxLayout( rightSideWidget );
+ m_groupWidgetStack = new QWidgetStack( rightSideWidget );
+ rightVLayout->setSpacing( 6 );
+ rightVLayout->addWidget( m_groupWidgetStack );
+
+ /* Buttons */
+ QWidget *buttonHWidget = new QWidget( this );
QHBoxLayout *buttonHLayout = new QHBoxLayout( buttonHWidget );
buttonHLayout->setMargin( 6 );
buttonHLayout->setSpacing( 6 );
@@ -130,12 +136,10 @@
buttonHLayout->addWidget( okButton );
buttonHLayout->addWidget( m_applyButton );
buttonHLayout->addWidget( cancelButton );
- leftVLayout->setSpacing( 6 );
- leftVLayout->addWidget( m_groupWidgetStack );
- leftVLayout->addWidget( new KSeparator( leftSideWidget ) );
- leftVLayout->addWidget( buttonHWidget );
mainVLayout->addWidget( mainSplitter );
+ mainVLayout->addWidget( new KSeparator( this ) );
+ mainVLayout->addWidget( buttonHWidget );
}
void UimPrefDialog::createGroupWidgets()
More information about the Uim-commit
mailing list