diff options
Diffstat (limited to 'tools/qtconfig')
| -rw-r--r-- | tools/qtconfig/colorbutton.cpp | 14 | ||||
| -rw-r--r-- | tools/qtconfig/mainwindow.cpp | 50 | ||||
| -rw-r--r-- | tools/qtconfig/paletteeditoradvanced.cpp | 12 | ||||
| -rw-r--r-- | tools/qtconfig/paletteeditoradvanced.h | 2 | ||||
| -rw-r--r-- | tools/qtconfig/previewwidget.cpp | 4 |
5 files changed, 41 insertions, 41 deletions
diff --git a/tools/qtconfig/colorbutton.cpp b/tools/qtconfig/colorbutton.cpp index 2d8668c21..c8000ea23 100644 --- a/tools/qtconfig/colorbutton.cpp +++ b/tools/qtconfig/colorbutton.cpp @@ -41,9 +41,9 @@ ColorButton::ColorButton(TQWidget *parent, const char *name) - : TQButton(parent, name), mousepressed(FALSE) + : TQButton(parent, name), mousepressed(false) { - setAcceptDrops(TRUE); + setAcceptDrops(true); col = black; connect(this, TQ_SIGNAL(clicked()), TQ_SLOT(changeColor())); } @@ -52,7 +52,7 @@ ColorButton::ColorButton(TQWidget *parent, const char *name) ColorButton::ColorButton(const TQColor &c, TQWidget *parent, const char *name) : TQButton(parent, name) { - setAcceptDrops(TRUE); + setAcceptDrops(true); col = c; connect(this, TQ_SIGNAL(clicked()), TQ_SLOT(changeColor())); } @@ -150,14 +150,14 @@ void ColorButton::dropEvent(TQDropEvent *e) void ColorButton::mousePressEvent(TQMouseEvent *e) { presspos = e->pos(); - mousepressed = TRUE; + mousepressed = true; TQButton::mousePressEvent(e); } void ColorButton::mouseReleaseEvent(TQMouseEvent *e) { - mousepressed = FALSE; + mousepressed = false; TQButton::mouseReleaseEvent(e); } @@ -168,8 +168,8 @@ void ColorButton::mouseMoveEvent(TQMouseEvent *e) return; if ((presspos - e->pos()).manhattanLength() > TQApplication::startDragDistance()) { - mousepressed = FALSE; - setDown(FALSE); + mousepressed = false; + setDown(false); TQColorDrag *cd = new TQColorDrag(color(), this); cd->dragCopy(); diff --git a/tools/qtconfig/mainwindow.cpp b/tools/qtconfig/mainwindow.cpp index 9a1d0044a..da77abb83 100644 --- a/tools/qtconfig/mainwindow.cpp +++ b/tools/qtconfig/mainwindow.cpp @@ -215,7 +215,7 @@ MainWindow::MainWindow() : MainWindowBase(0, "main window"), editPalette(palette()), previewPalette(palette()), previewstyle(0) { - modified = TRUE; + modified = true; TQStringList gstyles = TQStyleFactory::keys(); gstyles.sort(); @@ -373,7 +373,7 @@ MainWindow::MainWindow() sublistbox->clear(); sublistbox->insertStringList(subs); - rtlExtensions->setChecked( settings.readBoolEntry( "/qt/useRtlExtensions", FALSE ) ); + rtlExtensions->setChecked( settings.readBoolEntry( "/qt/useRtlExtensions", false ) ); #if defined(TQ_WS_X11) inputStyle->setCurrentText( trUtf8( @@ -443,11 +443,11 @@ MainWindow::MainWindow() inputMethodLabel->hide(); #endif - fontembeddingcheckbox->setChecked( settings.readBoolEntry("/qt/embedFonts", TRUE) ); + fontembeddingcheckbox->setChecked( settings.readBoolEntry("/qt/embedFonts", true) ); fontpaths = settings.readListEntry("/qt/fontPath", ':'); fontpathlistbox->insertStringList(fontpaths); - setModified(FALSE); + setModified(false); } @@ -566,7 +566,7 @@ void MainWindow::fileSave() TQApplication::x11_apply_settings(); #endif // TQ_WS_X11 - setModified(FALSE); + setModified(false); statusBar()->message("Saved changes."); } @@ -622,7 +622,7 @@ void MainWindow::buildPalette() updateColorButtons(); - setModified(TRUE); + setModified(true); } @@ -754,7 +754,7 @@ void MainWindow::tunePalette() editPalette = pal; setPreviewPalette(editPalette); - setModified(TRUE); + setModified(true); } @@ -774,7 +774,7 @@ void MainWindow::styleSelected(const TQString &stylename) delete previewstyle; previewstyle = style; - setModified(TRUE); + setModified(true); } @@ -796,7 +796,7 @@ void MainWindow::buildFont() stylecombo->currentText(), psizecombo->currentText().toInt()); samplelineedit->setFont(font); - setModified(TRUE); + setModified(true); } @@ -824,7 +824,7 @@ void MainWindow::removeSubstitute() sublistbox->setCurrentItem(item); TQFont::removeSubstitution(familysubcombo->currentText()); TQFont::insertSubstitutions(familysubcombo->currentText(), subs); - setModified(TRUE); + setModified(true); } @@ -836,7 +836,7 @@ void MainWindow::addSubstitute() TQStringList subs = TQFont::substitutes(familysubcombo->currentText()); sublistbox->clear(); sublistbox->insertStringList(subs); - setModified(TRUE); + setModified(true); return; } @@ -846,7 +846,7 @@ void MainWindow::addSubstitute() sublistbox->clear(); sublistbox->insertStringList(subs); sublistbox->setCurrentItem(item); - setModified(TRUE); + setModified(true); } @@ -868,7 +868,7 @@ void MainWindow::downSubstitute() sublistbox->setCurrentItem(item + 1); TQFont::removeSubstitution(familysubcombo->currentText()); TQFont::insertSubstitutions(familysubcombo->currentText(), subs); - setModified(TRUE); + setModified(true); } @@ -889,7 +889,7 @@ void MainWindow::upSubstitute() sublistbox->setCurrentItem(item - 1); TQFont::removeSubstitution(familysubcombo->currentText()); TQFont::insertSubstitutions(familysubcombo->currentText(), subs); - setModified(TRUE); + setModified(true); } @@ -908,7 +908,7 @@ void MainWindow::removeLibpath() item = int(libpathlistbox->count()) - 1; libpathlistbox->setCurrentItem(item); TQApplication::setLibraryPaths(paths); - setModified(TRUE); + setModified(true); } @@ -924,7 +924,7 @@ void MainWindow::addLibpath() libpathlistbox->clear(); libpathlistbox->insertStringList(paths); TQApplication::setLibraryPaths(paths); - setModified(TRUE); + setModified(true); return; } @@ -937,7 +937,7 @@ void MainWindow::addLibpath() libpathlistbox->insertStringList(paths); libpathlistbox->setCurrentItem(item); TQApplication::setLibraryPaths(paths); - setModified(TRUE); + setModified(true); } @@ -958,7 +958,7 @@ void MainWindow::downLibpath() libpathlistbox->insertStringList(paths); libpathlistbox->setCurrentItem(item + 1); TQApplication::setLibraryPaths(paths); - setModified(TRUE); + setModified(true); } @@ -978,7 +978,7 @@ void MainWindow::upLibpath() libpathlistbox->insertStringList(paths); libpathlistbox->setCurrentItem(item - 1); TQApplication::setLibraryPaths(paths); - setModified(TRUE); + setModified(true); } @@ -1006,7 +1006,7 @@ void MainWindow::removeFontpath() if (uint(item) > fontpathlistbox->count()) item = int(fontpathlistbox->count()) - 1; fontpathlistbox->setCurrentItem(item); - setModified(TRUE); + setModified(true); } @@ -1020,7 +1020,7 @@ void MainWindow::addFontpath() fontpaths.append(fontpathlineedit->text()); fontpathlistbox->clear(); fontpathlistbox->insertStringList(fontpaths); - setModified(TRUE); + setModified(true); return; } @@ -1031,7 +1031,7 @@ void MainWindow::addFontpath() fontpathlistbox->clear(); fontpathlistbox->insertStringList(fontpaths); fontpathlistbox->setCurrentItem(item); - setModified(TRUE); + setModified(true); } @@ -1050,7 +1050,7 @@ void MainWindow::downFontpath() fontpathlistbox->clear(); fontpathlistbox->insertStringList(fontpaths); fontpathlistbox->setCurrentItem(item + 1); - setModified(TRUE); + setModified(true); } @@ -1068,7 +1068,7 @@ void MainWindow::upFontpath() fontpathlistbox->clear(); fontpathlistbox->insertStringList(fontpaths); fontpathlistbox->setCurrentItem(item - 1); - setModified(TRUE); + setModified(true); } @@ -1085,7 +1085,7 @@ void MainWindow::browseFontpath() void MainWindow::somethingModified() { - setModified(TRUE); + setModified(true); } diff --git a/tools/qtconfig/paletteeditoradvanced.cpp b/tools/qtconfig/paletteeditoradvanced.cpp index 02078bc40..f693464dd 100644 --- a/tools/qtconfig/paletteeditoradvanced.cpp +++ b/tools/qtconfig/paletteeditoradvanced.cpp @@ -64,7 +64,7 @@ BoldListBoxText::BoldListBoxText( TQString text, TQListBox* lb ) void BoldListBoxText::paint( TQPainter* painter ) { TQFont f = painter->font(); - f.setBold( TRUE ); + f.setBold( true ); painter->setFont( f ); TQListBoxText::paint( painter ); @@ -121,8 +121,8 @@ void PaletteEditorAdvanced::paletteSelected(int p) groupEffect->setDisabled(checkBuildDisabled->isChecked()); } else { - groupCentral->setEnabled(TRUE); - groupEffect->setEnabled(TRUE); + groupCentral->setEnabled(true); + groupEffect->setEnabled(true); } updateColorButtons(); } @@ -594,7 +594,7 @@ TQPalette PaletteEditorAdvanced::getPalette( bool *ok, const TQPalette &init, BackgroundMode mode, TQWidget* parent, const char* name ) { - PaletteEditorAdvanced* dlg = new PaletteEditorAdvanced( parent, name, TRUE ); + PaletteEditorAdvanced* dlg = new PaletteEditorAdvanced( parent, name, true ); dlg->setupBackgroundMode( mode ); if ( init != TQPalette() ) @@ -604,11 +604,11 @@ TQPalette PaletteEditorAdvanced::getPalette( bool *ok, const TQPalette &init, TQPalette result = init; if ( resultCode == TQDialog::Accepted ) { if ( ok ) - *ok = TRUE; + *ok = true; result = dlg->pal(); } else { if ( ok ) - *ok = FALSE; + *ok = false; } delete dlg; return result; diff --git a/tools/qtconfig/paletteeditoradvanced.h b/tools/qtconfig/paletteeditoradvanced.h index c1724a651..fc4b4a51b 100644 --- a/tools/qtconfig/paletteeditoradvanced.h +++ b/tools/qtconfig/paletteeditoradvanced.h @@ -41,7 +41,7 @@ class PaletteEditorAdvanced : public PaletteEditorAdvancedBase TQ_OBJECT public: PaletteEditorAdvanced( TQWidget * parent=0, const char * name=0, - bool modal=FALSE, WFlags f=0 ); + bool modal=false, WFlags f=0 ); ~PaletteEditorAdvanced(); static TQPalette getPalette( bool *ok, const TQPalette &pal, BackgroundMode mode = PaletteBackground, diff --git a/tools/qtconfig/previewwidget.cpp b/tools/qtconfig/previewwidget.cpp index 1bb32b1d6..f9bc99ab2 100644 --- a/tools/qtconfig/previewwidget.cpp +++ b/tools/qtconfig/previewwidget.cpp @@ -67,9 +67,9 @@ bool PreviewWidget::eventFilter(TQObject *, TQEvent *e) case TQEvent::KeyRelease: case TQEvent::Enter: case TQEvent::Leave: - return TRUE; // ignore; + return true; // ignore; default: break; } - return FALSE; + return false; } |
