Diffstat (limited to 'noncore/apps/advancedfm/advancedfmData.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/advancedfm/advancedfmData.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/noncore/apps/advancedfm/advancedfmData.cpp b/noncore/apps/advancedfm/advancedfmData.cpp index 73ef8f9..ce7da24 100644 --- a/noncore/apps/advancedfm/advancedfmData.cpp +++ b/noncore/apps/advancedfm/advancedfmData.cpp @@ -38,5 +38,6 @@ void AdvancedFm::init() { layout->setSpacing( 2); - layout->setMargin( 2); + layout->setMargin( 0); // squeeze QMenuBar *menuBar = new QMenuBar(this); + menuBar->setMargin( 0 ); // squeeze fileMenu = new QPopupMenu( this ); @@ -56,3 +57,2 @@ void AdvancedFm::init() { - QHBox *lineBox = new QHBox( this ); @@ -116,3 +116,7 @@ void AdvancedFm::init() { - menuButton = new MenuButton( lineBox ); + QHBoxLayout *CBHB = new QHBoxLayout(); // parent layout will be set later + CBHB->setMargin( 0 ); + CBHB->setSpacing( 1 ); + + menuButton = new MenuButton( this ); @@ -124,2 +128,3 @@ void AdvancedFm::init() { menuButton->setFocusPolicy(NoFocus); + CBHB->addWidget( menuButton ); @@ -127,3 +132,3 @@ void AdvancedFm::init() { - currentPathCombo = new QComboBox( FALSE, lineBox, "currentPathCombo" ); + currentPathCombo = new QComboBox( FALSE, this, "currentPathCombo" ); currentPathCombo->setEditable(TRUE); @@ -131,4 +136,5 @@ void AdvancedFm::init() { currentPathCombo->setFocusPolicy(NoFocus); - layout->addWidget( lineBox ); + CBHB->addWidget( currentPathCombo ); + layout->addLayout( CBHB ); |