summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2005-08-09 07:57:17 (UTC)
committer llornkcor <llornkcor>2005-08-09 07:57:17 (UTC)
commit438e79dd18c8b752f1e7d74a79f3cdf84f8703c8 (patch) (unidiff)
treeeb03fa0c989f9ecf138464d1793c28d05b80913c
parent65fefea850384673d282e19ebecd7840cb697354 (diff)
downloadopie-438e79dd18c8b752f1e7d74a79f3cdf84f8703c8.zip
opie-438e79dd18c8b752f1e7d74a79f3cdf84f8703c8.tar.gz
opie-438e79dd18c8b752f1e7d74a79f3cdf84f8703c8.tar.bz2
left align toolbar icons
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-gutenbrowser/gutenbrowserData.cpp27
1 files changed, 15 insertions, 12 deletions
diff --git a/noncore/apps/opie-gutenbrowser/gutenbrowserData.cpp b/noncore/apps/opie-gutenbrowser/gutenbrowserData.cpp
index d384c09..ae1f69c 100644
--- a/noncore/apps/opie-gutenbrowser/gutenbrowserData.cpp
+++ b/noncore/apps/opie-gutenbrowser/gutenbrowserData.cpp
@@ -168,2 +168,4 @@ qDebug("lease query before leaving the library.");;
168 168
169#define SCALED Opie::Core::OResource::SmallIcon
170
169void Gutenbrowser::initMenuBar() 171void Gutenbrowser::initMenuBar()
@@ -175,8 +177,8 @@ void Gutenbrowser::initMenuBar()
175 fileMenu=new QPopupMenu(); 177 fileMenu=new QPopupMenu();
176 fileMenu->insertItem( Opie::Core::OResource::loadPixmap("gutenbrowser/openbook", Opie::Core::OResource::SmallIcon ), 178 fileMenu->insertItem( Opie::Core::OResource::loadPixmap("gutenbrowser/openbook", SCALED ),
177 "Open Local Library...", this, SLOT( OpenBtn()) ); 179 "Open Local Library...", this, SLOT( OpenBtn()) );
178// fileMenu->insertItem("Download FTPSite", this, SLOT( downloadFtpList()) ); 180// fileMenu->insertItem("Download FTPSite", this, SLOT( downloadFtpList()) );
179 fileMenu->insertItem( Opie::Core::OResource::loadPixmap("home", Opie::Core::OResource::SmallIcon ), 181 fileMenu->insertItem( Opie::Core::OResource::loadPixmap("home", SCALED ),
180 "Download Library Index", this, SLOT( downloadLibIndex()) ); 182 "Download Library Index", this, SLOT( downloadLibIndex()) );
181 fileMenu->insertItem( Opie::Core::OResource::loadPixmap("quit", Opie::Core::OResource::SmallIcon ), 183 fileMenu->insertItem( Opie::Core::OResource::loadPixmap("quit",SCALED),
182 "Quit Gutenbrowser...", this, SLOT( ByeBye()) ); 184 "Quit Gutenbrowser...", this, SLOT( ByeBye()) );
@@ -186,7 +188,7 @@ void Gutenbrowser::initMenuBar()
186 188
187 editMenu->insertItem( Opie::Core::OResource::loadPixmap("up", Opie::Core::OResource::SmallIcon ), "Top", 189 editMenu->insertItem( Opie::Core::OResource::loadPixmap("up", SCALED ), "Top",
188 this, SLOT(TopBtn()) ); 190 this, SLOT(TopBtn()) );
189 editMenu->insertItem( Opie::Core::OResource::loadPixmap("back", Opie::Core::OResource::SmallIcon ), "Beginning", 191 editMenu->insertItem( Opie::Core::OResource::loadPixmap("back",SCALED ), "Beginning",
190 this, SLOT(doBeginBtn()) ); 192 this, SLOT(doBeginBtn()) );
191 editMenu->insertItem( Opie::Core::OResource::loadPixmap("gutenbrowser/search", Opie::Core::OResource::SmallIcon ), "Search", 193 editMenu->insertItem( Opie::Core::OResource::loadPixmap("gutenbrowser/search",SCALED ), "Search",
192 this, SLOT(SearchBtn()) ); 194 this, SLOT(SearchBtn()) );
@@ -196,3 +198,3 @@ void Gutenbrowser::initMenuBar()
196 optionsMenu= new QPopupMenu(); 198 optionsMenu= new QPopupMenu();
197 optionsMenu->insertItem( Opie::Core::OResource::loadPixmap("gutenbrowser/configure", Opie::Core::OResource::SmallIcon ), 199 optionsMenu->insertItem( Opie::Core::OResource::loadPixmap("gutenbrowser/configure",SCALED ),
198 "Configure", this, SLOT(doOptions()) ); 200 "Configure", this, SLOT(doOptions()) );
@@ -201,3 +203,3 @@ void Gutenbrowser::initMenuBar()
201// donateMenu->insertItem("Gutenberg", this, SLOT(donateGutenberg()) ); 203// donateMenu->insertItem("Gutenberg", this, SLOT(donateGutenberg()) );
202 donateMenu->insertItem( Opie::Core::OResource::loadPixmap("gutenbrowser/gutenbrowser_sm", Opie::Core::OResource::SmallIcon ), 204 donateMenu->insertItem( Opie::Core::OResource::loadPixmap("gutenbrowser/gutenbrowser_sm", SCALED ),
203 "Gutenbrowser Developer", this, SLOT(infoGutenbrowser()) ); 205 "Gutenbrowser Developer", this, SLOT(infoGutenbrowser()) );
@@ -216,3 +218,3 @@ void Gutenbrowser::initButtonBar()
216{ 218{
217 qDebug("Starting buttonbar init."); 219 //qDebug("Starting buttonbar init.");
218 220
@@ -251,4 +253,4 @@ void Gutenbrowser::initButtonBar()
251 253
252 buttonsHidden=FALSE; 254 buttonsHidden=false;
253 buttons2->setSpacing(2); 255
254 buttons2->addWidget(OpenButton, 0, AlignCenter); 256 buttons2->addWidget(OpenButton, 0, AlignCenter);
@@ -262,4 +264,5 @@ void Gutenbrowser::initButtonBar()
262 buttons2->addWidget(InfoBar, 0, AlignCenter); 264 buttons2->addWidget(InfoBar, 0, AlignCenter);
265 buttons2->addStretch(5);
266 buttons2->setSpacing(5);
263 267
264 topLayout->setSpacing(0);
265 topLayout->addLayout( buttons2,0); 268 topLayout->addLayout( buttons2,0);