summaryrefslogtreecommitdiff
authortille <tille>2002-07-01 13:31:20 (UTC)
committer tille <tille>2002-07-01 13:31:20 (UTC)
commit1f42fc6dd4ef09b5a9526e81784ab3d05b9300b1 (patch) (unidiff)
treeeaf5284b3841c247c9f048e6c529053ca9ded412
parent346ea8fa0d904e940659bc35fad0fc0da8cc7f80 (diff)
downloadopie-1f42fc6dd4ef09b5a9526e81784ab3d05b9300b1.zip
opie-1f42fc6dd4ef09b5a9526e81784ab3d05b9300b1.tar.gz
opie-1f42fc6dd4ef09b5a9526e81784ab3d05b9300b1.tar.bz2
cosmetics
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/mainwindow.cpp35
-rw-r--r--noncore/unsupported/oipkg/pmipkg.cpp21
-rw-r--r--noncore/unsupported/oipkg/utils.cpp9
-rw-r--r--noncore/unsupported/oipkg/utils.h9
4 files changed, 37 insertions, 37 deletions
diff --git a/noncore/unsupported/oipkg/mainwindow.cpp b/noncore/unsupported/oipkg/mainwindow.cpp
index 084900d..53db477 100644
--- a/noncore/unsupported/oipkg/mainwindow.cpp
+++ b/noncore/unsupported/oipkg/mainwindow.cpp
@@ -63,3 +63,2 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) :
63 pvDebug(9,"packageListDocLnk.update"); 63 pvDebug(9,"packageListDocLnk.update");
64 pvDebug(0,"no UPDATE of DocLnk");
65 packageListDocLnk.update(); 64 packageListDocLnk.update();
@@ -68,8 +67,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) :
68 makeChannel(); 67 makeChannel();
69 //opie is hardcoded default ;) 68
70 //pvDebug(9,"section->setCurrentItem");
71// for (int i=0;i<section->count();i++)
72 // if (section->text(i)=="opie")
73 // section->setCurrentItem(i);
74// sectionChanged();
75 69
@@ -153,8 +147,14 @@ void MainWindow::makeMenu()
153 sectionBar->setHorizontalStretchable( true ); 147 sectionBar->setHorizontalStretchable( true );
154 QLabel *label = new QLabel( tr("Section: "), sectionBar ); 148 QLabel *label = new QLabel( sectionBar, "section" );
155 label->setBackgroundColor( sectionBar->backgroundColor() ); 149// label->setBackgroundMode( NoBackground );
150 label->font().setPointSize( 8 );
151 label->setText( tr( "Section:" ) );
152 sectionBar->setStretchableWidget( label );
156 section = new QComboBox( false, sectionBar ); 153 section = new QComboBox( false, sectionBar );
154 section->font().setPointSize( 8 );
157 label = new QLabel( " / ", sectionBar ); 155 label = new QLabel( " / ", sectionBar );
158 label->setBackgroundColor( sectionBar->backgroundColor() ); 156 label->font().setPointSize( 8 );
157// label->setBackgroundMode( PaletteForeground );
159 subsection = new QComboBox( false, sectionBar ); 158 subsection = new QComboBox( false, sectionBar );
159 subsection->font().setPointSize( 8 );
160 a = new QAction( tr( "Close Section" ), Resource::loadPixmap( "close" ), QString::null, 0, this, 0 ); 160 a = new QAction( tr( "Close Section" ), Resource::loadPixmap( "close" ), QString::null, 0, this, 0 );
@@ -168,3 +168,3 @@ void MainWindow::makeMenu()
168 sectionAction->addTo( viewMenu ); 168 sectionAction->addTo( viewMenu );
169 sectionBar->setStretchableWidget( section ); 169 // sectionBar->setStretchableWidget( section );
170 170
@@ -174,3 +174,3 @@ void MainWindow::makeMenu()
174 label = new QLabel( tr("Filter: "), findBar ); 174 label = new QLabel( tr("Filter: "), findBar );
175 label->setBackgroundColor( findBar->backgroundColor() ); 175// label->setBackgroundMode( PaletteForeground );
176 findBar->setHorizontalStretchable( TRUE ); 176 findBar->setHorizontalStretchable( TRUE );
@@ -195,3 +195,3 @@ void MainWindow::makeMenu()
195 label = new QLabel( tr("ipkgfind: "), searchBar ); 195 label = new QLabel( tr("ipkgfind: "), searchBar );
196 label->setBackgroundColor( searchBar->backgroundColor() ); 196// label->setBackgroundMode( PaletteForeground );
197 searchBar->setHorizontalStretchable( TRUE ); 197 searchBar->setHorizontalStretchable( TRUE );
@@ -219,3 +219,3 @@ void MainWindow::makeMenu()
219 label = new QLabel( tr("Destination: "), destBar ); 219 label = new QLabel( tr("Destination: "), destBar );
220 label->setBackgroundColor( destBar->backgroundColor() ); 220// label->setBackgroundMode( PaletteForeground );
221 destBar->setHorizontalStretchable( TRUE ); 221 destBar->setHorizontalStretchable( TRUE );
@@ -227,5 +227,5 @@ void MainWindow::makeMenu()
227 spacer = new QLabel( " ", destBar ); 227 spacer = new QLabel( " ", destBar );
228 spacer->setBackgroundColor( destBar->backgroundColor() ); 228// spacer->setBackgroundMode( PaletteForeground );
229 CheckBoxLink = new QCheckBox( tr("Link"), destBar); 229 CheckBoxLink = new QCheckBox( tr("Link"), destBar);
230 CheckBoxLink->setBackgroundColor( destBar->backgroundColor() ); 230// CheckBoxLink->setBackgroundMode( PaletteForeground );
231 CheckBoxLink->setChecked( settings->createLinks() ); 231 CheckBoxLink->setChecked( settings->createLinks() );
@@ -287,2 +287,4 @@ void MainWindow::makeMenu()
287 destShow( cfg.readBoolEntry( "destBar", false ) ); 287 destShow( cfg.readBoolEntry( "destBar", false ) );
288 setComboName(section,cfg.readEntry("default_section"));
289 sectionChanged();
288} 290}
@@ -297,2 +299,3 @@ MainWindow::~MainWindow()
297 cfg.writeEntry( "destBar", !destBar->isHidden() ); 299 cfg.writeEntry( "destBar", !destBar->isHidden() );
300 cfg.writeEntry( "default_section", section->currentText() );
298 301
diff --git a/noncore/unsupported/oipkg/pmipkg.cpp b/noncore/unsupported/oipkg/pmipkg.cpp
index de1f162..4a8a389 100644
--- a/noncore/unsupported/oipkg/pmipkg.cpp
+++ b/noncore/unsupported/oipkg/pmipkg.cpp
@@ -69,2 +69,3 @@ bool PmIpkg::runIpkg(const QString& args, const QString& dest )
69#ifdef OPROCESS 69#ifdef OPROCESS
70 ipkgProcess->kill();
70 ipkgProcess->clearArguments(); 71 ipkgProcess->clearArguments();
@@ -101,2 +102,4 @@ bool PmIpkg::runIpkg(const QString& args, const QString& dest )
101//debug 102//debug
103 delete ipkgProcess;
104 ipkgProcess = new OProcess();
102 ipkgProcess->clearArguments(); 105 ipkgProcess->clearArguments();
@@ -172,3 +175,3 @@ QStringList* PmIpkg::getList( QString packFileName, QString d )
172 dest = dest==""?d:dest; 175 dest = dest==""?d:dest;
173 if (dest == "/" ) return 0; 176 // if (dest == "/" ) return 0;
174 { 177 {
@@ -178,3 +181,3 @@ QStringList* PmIpkg::getList( QString packFileName, QString d )
178 } 181 }
179 packFileName = dest+"/"+statusDir+"/info/"+packFileName+".list"; 182 QString packFileDir = dest+"/"+statusDir+"/info/"+packFileName+".list";
180 QFile f( packFileName ); 183 QFile f( packFileName );
@@ -182,5 +185,11 @@ QStringList* PmIpkg::getList( QString packFileName, QString d )
182 { 185 {
183 pvDebug(1," Panik! Could not open"); 186 out( "Could not open:\n"+packFileDir );
184 out( "Panik!\n Could not open:\n"+packFileName ); 187 f.close();
185 return (QStringList*)0; 188 packFileDir = "/"+statusDir+"/info/"+packFileName+".list";
189 f.setName( packFileDir );
190 if ( ! f.open(IO_ReadOnly) )
191 {
192 qDebug(" Panik! Could not open"+packFileDir);
193 out( "Could not open:\n"+packFileDir+"\n Panik!" );
194 }
186 } 195 }
@@ -192,2 +201,3 @@ QStringList* PmIpkg::getList( QString packFileName, QString d )
192 } 201 }
202 f.close();
193 return fileList; 203 return fileList;
@@ -197,2 +207,3 @@ void PmIpkg::linkPackage( QString packFileName, QString dest )
197{ 207{
208 if (dest == "root" || dest == "/" ) return;
198 QStringList *fileList = getList( packFileName, dest ); 209 QStringList *fileList = getList( packFileName, dest );
diff --git a/noncore/unsupported/oipkg/utils.cpp b/noncore/unsupported/oipkg/utils.cpp
index 66dcf10..6821343 100644
--- a/noncore/unsupported/oipkg/utils.cpp
+++ b/noncore/unsupported/oipkg/utils.cpp
@@ -1,10 +1,2 @@
1/*************************************************************************** 1/***************************************************************************
2 utils.cpp - description
3 -------------------
4 begin : Sun Apr 28 2002
5 copyright : (C) 2002 by tille
6 email : tille@handhelds.org
7 ***************************************************************************/
8
9/***************************************************************************
10 * * 2 * *
@@ -16,2 +8,3 @@
16 ***************************************************************************/ 8 ***************************************************************************/
9// (c) 2002 Patrick S. Vogt <tille@handhelds.org>
17 10
diff --git a/noncore/unsupported/oipkg/utils.h b/noncore/unsupported/oipkg/utils.h
index ecc70dc..da33eda 100644
--- a/noncore/unsupported/oipkg/utils.h
+++ b/noncore/unsupported/oipkg/utils.h
@@ -1,10 +1,2 @@
1/*************************************************************************** 1/***************************************************************************
2 utils.h - description
3 -------------------
4 begin : Sun Apr 28 2002
5 copyright : (C) 2002 by tille
6 email : tille@handhelds.org
7 ***************************************************************************/
8
9/***************************************************************************
10 * * 2 * *
@@ -16,2 +8,3 @@
16 ***************************************************************************/ 8 ***************************************************************************/
9// (c) 2002 Patrick S. Vogt <tille@handhelds.org>
17 10