summaryrefslogtreecommitdiff
authorzecke <zecke>2004-03-25 20:07:06 (UTC)
committer zecke <zecke>2004-03-25 20:07:06 (UTC)
commit875064bec847768670d33cddf8553ce89ef4a5d5 (patch) (side-by-side diff)
tree5df41ec8e4f980e052db7785d219d1f97ab3fedc
parent97016caf3a660676a8a1ce300b7e4c7588262209 (diff)
downloadopie-875064bec847768670d33cddf8553ce89ef4a5d5.zip
opie-875064bec847768670d33cddf8553ce89ef4a5d5.tar.gz
opie-875064bec847768670d33cddf8553ce89ef4a5d5.tar.bz2
Wims patch for changing the margins to give more space
and to fix renaming
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfmData.cpp16
-rw-r--r--noncore/apps/advancedfm/advancedfmMenu.cpp2
2 files changed, 12 insertions, 6 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 );
diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp
index 6d41ac3..2461e26 100644
--- a/noncore/apps/advancedfm/advancedfmMenu.cpp
+++ b/noncore/apps/advancedfm/advancedfmMenu.cpp
@@ -818,3 +818,3 @@ void AdvancedFm::renameIt() {
void AdvancedFm::okRename() {
- if( !CurrentView()->currentItem()) return;
+ if( !renameBox) return;