author | zecke <zecke> | 2004-09-10 11:11:23 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-09-10 11:11:23 (UTC) |
commit | 532d65f8a45850bfda3c3344a7b165af91e48440 (patch) (side-by-side diff) | |
tree | cbda2467001ed9a5be304fa52cabbb797b56ecfe /noncore/apps/opie-gutenbrowser/fontDialog.cpp | |
parent | e64d9e9682e0afefc4fbebe7ba9737e0f86e3ed7 (diff) | |
download | opie-532d65f8a45850bfda3c3344a7b165af91e48440.zip opie-532d65f8a45850bfda3c3344a7b165af91e48440.tar.gz opie-532d65f8a45850bfda3c3344a7b165af91e48440.tar.bz2 |
Add newlines, remove unused local variables, remove unused parameters,
add newlines at the end of file...
Diffstat (limited to 'noncore/apps/opie-gutenbrowser/fontDialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-gutenbrowser/fontDialog.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/noncore/apps/opie-gutenbrowser/fontDialog.cpp b/noncore/apps/opie-gutenbrowser/fontDialog.cpp index fa964a6..c6d0fe6 100644 --- a/noncore/apps/opie-gutenbrowser/fontDialog.cpp +++ b/noncore/apps/opie-gutenbrowser/fontDialog.cpp @@ -57,3 +57,3 @@ FontDialog::FontDialog( QWidget * parent, const char* name /*, bool modal, WFla hbox->addWidget( FontTextLabel4,0); - + sizeComboBox = new QComboBox( FALSE, this, "SizeCombo"); @@ -64,3 +64,3 @@ FontDialog::FontDialog( QWidget * parent, const char* name /*, bool modal, WFla layout->addLayout( vbox,0,3); - + MultiLineEdit1 = new QMultiLineEdit( this, "MultiLineEdit1" ); @@ -92,3 +92,3 @@ void FontDialog::familyListBoxSlot(const QString & text) family = text; -// odebug << family << oendl; +// odebug << family << oendl; QStringList styles = fdb.styles( family ); // string list of styles of our current font family @@ -97,3 +97,3 @@ void FontDialog::familyListBoxSlot(const QString & text) -#ifdef BUGGY_SHARP_ZAURUS +#ifdef BUGGY_SHARP_ZAURUS @@ -102,3 +102,3 @@ QValueList<int> smoothies = fdb.smoothSizes( family, styleListBox->text(0) ); dstyle = QString::number( *points ); - odebug << dstyle << oendl; + odebug << dstyle << oendl; sizeComboBox->insertItem( dstyle.left( dstyle.length() - 1 )); @@ -115,3 +115,3 @@ QValueList<int> smoothies = fdb.smoothSizes( family, styleListBox->text(0) ); - if(styleInt == -1 || styleInt > styleListBox->count() ) + if(styleInt == -1 || styleInt > static_cast<int>(styleListBox->count()) ) styleListBox->setCurrentItem(0); @@ -123,3 +123,3 @@ QValueList<int> smoothies = fdb.smoothSizes( family, styleListBox->text(0) ); -void FontDialog::styleListBoxSlot(const QString &text) +void FontDialog::styleListBoxSlot(const QString &) { @@ -128,3 +128,3 @@ void FontDialog::styleListBoxSlot(const QString &text) -void FontDialog::sizeComboBoxSlot(const QString & text) +void FontDialog::sizeComboBoxSlot(const QString &) { @@ -153,3 +153,3 @@ void FontDialog::populateLists() // if(family == defaultFont.family()) -// odebug << family << oendl; +// odebug << family << oendl; familyListBox->insertItem( family); @@ -176,3 +176,3 @@ void FontDialog::populateLists() } - for(int i=0;i < familyListBox->count();i++) { + for(uint i=0;i < familyListBox->count();i++) { if( familyListBox->text(i) == familyStr) @@ -181,3 +181,3 @@ void FontDialog::populateLists() - for(int i=0;i < styleListBox->count();i++) { + for(uint i=0;i < styleListBox->count();i++) { if( styleListBox->text(i) == styleStr) @@ -191,3 +191,3 @@ void FontDialog::populateLists() #else - if(fontsize[i] == i_size) + if(fontsize[i] == i_size) #endif @@ -211,3 +211,3 @@ void FontDialog::changeText() } -// odebug << "Font family is "+family << oendl; +// odebug << "Font family is "+family << oendl; if( styleListBox->currentItem() == -1) @@ -217,3 +217,3 @@ void FontDialog::changeText() } -// odebug << "font style is "+style << oendl; +// odebug << "font style is "+style << oendl; @@ -225,3 +225,3 @@ void FontDialog::changeText() -// odebug << "Font size is "+size << oendl; +// odebug << "Font size is "+size << oendl; bool ok; @@ -233,3 +233,3 @@ void FontDialog::changeText() charSet = *s; -// odebug << charSet << oendl; +// odebug << charSet << oendl; } @@ -237,5 +237,5 @@ void FontDialog::changeText() QFontInfo fontInfo( selectedFont); -// if(fontInfo.italic() ) odebug << "italic" << oendl; - selectedFont.setWeight(fontInfo.weight() ); -// odebug << "Style are "+style+" " << fontInfo.weight() << " " << oendl; +// if(fontInfo.italic() ) odebug << "italic" << oendl; + selectedFont.setWeight(fontInfo.weight() ); +// odebug << "Style are "+style+" " << fontInfo.weight() << " " << oendl; Config cfg("Gutenbrowser"); @@ -251,3 +251,3 @@ void FontDialog::changeText() cfg.writeEntry("Italic","TRUE"); -// odebug << "Style is "+styleListBox->currentText() << oendl; +// odebug << "Style is "+styleListBox->currentText() << oendl; } else |