summaryrefslogtreecommitdiffstats
path: root/src/part/settingsDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/part/settingsDialog.cpp')
-rw-r--r--src/part/settingsDialog.cpp64
1 files changed, 32 insertions, 32 deletions
diff --git a/src/part/settingsDialog.cpp b/src/part/settingsDialog.cpp
index 508904a..3e99574 100644
--- a/src/part/settingsDialog.cpp
+++ b/src/part/settingsDialog.cpp
@@ -1,12 +1,12 @@
//Author: Max Howell <max.howell@methylblue.com>, (C) 2003-4
//Copyright: See COPYING file that comes with this distribution
-#include <qapplication.h> //Getting desktop width
-#include <qcheckbox.h>
-#include <qpushbutton.h>
-#include <qradiobutton.h>
-#include <qslider.h>
-#include <qvbuttongroup.h>
+#include <tqapplication.h> //Getting desktop width
+#include <tqcheckbox.h>
+#include <tqpushbutton.h>
+#include <tqradiobutton.h>
+#include <tqslider.h>
+#include <tqvbuttongroup.h>
#include <kdirselectdialog.h>
#include <kiconloader.h>
@@ -18,38 +18,38 @@
#include "Config.h"
-SettingsDialog::SettingsDialog( QWidget *parent, const char *name )
- : Dialog( parent, name, false ) //3rd param => modal
+SettingsDialog::SettingsDialog( TQWidget *tqparent, const char *name )
+ : Dialog( tqparent, name, false ) //3rd param => modal
{
- colourSchemeGroup->setFrameShape( QFrame::NoFrame );
+ colourSchemeGroup->setFrameShape( TQFrame::NoFrame );
- colourSchemeGroup->insert( new QRadioButton( i18n("Rainbow"), colourSchemeGroup ), Filelight::Rainbow );
- colourSchemeGroup->insert( new QRadioButton( i18n("KDE Colors"), colourSchemeGroup ), Filelight::KDE );
- colourSchemeGroup->insert( new QRadioButton( i18n("High Contrast"), colourSchemeGroup ), Filelight::HighContrast );
+ colourSchemeGroup->insert( new TQRadioButton( i18n("Rainbow"), colourSchemeGroup ), Filelight::Rainbow );
+ colourSchemeGroup->insert( new TQRadioButton( i18n("KDE Colors"), colourSchemeGroup ), Filelight::KDE );
+ colourSchemeGroup->insert( new TQRadioButton( i18n("High Contrast"), colourSchemeGroup ), Filelight::HighContrast );
//read in settings before you make all those nasty connections!
reset(); //makes dialog reflect global settings
- connect( &m_timer, SIGNAL(timeout()), SIGNAL(mapIsInvalid()) );
+ connect( &m_timer, TQT_SIGNAL(timeout()), TQT_SIGNAL(mapIsInvalid()) );
- connect( m_addButton, SIGNAL( clicked() ), SLOT( addDirectory() ) );
- connect( m_removeButton, SIGNAL( clicked() ), SLOT( removeDirectory() ) );
- connect( m_resetButton, SIGNAL( clicked() ), SLOT( reset() ) );
- connect( m_closeButton, SIGNAL( clicked() ), SLOT( close() ) );
+ connect( m_addButton, TQT_SIGNAL( clicked() ), TQT_SLOT( addDirectory() ) );
+ connect( m_removeButton, TQT_SIGNAL( clicked() ), TQT_SLOT( removeDirectory() ) );
+ connect( m_resetButton, TQT_SIGNAL( clicked() ), TQT_SLOT( reset() ) );
+ connect( m_closeButton, TQT_SIGNAL( clicked() ), TQT_SLOT( close() ) );
- connect( colourSchemeGroup, SIGNAL(clicked( int )), SLOT(changeScheme( int )) );
- connect( contrastSlider, SIGNAL(valueChanged( int )), SLOT(changeContrast( int )) );
- connect( contrastSlider, SIGNAL(sliderReleased()), SLOT(slotSliderReleased()) );
+ connect( colourSchemeGroup, TQT_SIGNAL(clicked( int )), TQT_SLOT(changeScheme( int )) );
+ connect( contrastSlider, TQT_SIGNAL(valueChanged( int )), TQT_SLOT(changeContrast( int )) );
+ connect( contrastSlider, TQT_SIGNAL(sliderReleased()), TQT_SLOT(slotSliderReleased()) );
- connect( scanAcrossMounts, SIGNAL( toggled( bool ) ), SLOT( startTimer() ) );
- connect( dontScanRemoteMounts, SIGNAL( toggled( bool ) ), SLOT( startTimer() ) );
- connect( dontScanRemovableMedia, SIGNAL( toggled( bool ) ), SLOT( startTimer() ) );
+ connect( scanAcrossMounts, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( startTimer() ) );
+ connect( dontScanRemoteMounts, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( startTimer() ) );
+ connect( dontScanRemovableMedia, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( startTimer() ) );
- connect( useAntialiasing, SIGNAL( toggled( bool ) ), SLOT( toggleUseAntialiasing( bool ) ) );
- connect( varyLabelFontSizes, SIGNAL( toggled( bool ) ), SLOT( toggleVaryLabelFontSizes( bool ) ) );
- connect( showSmallFiles, SIGNAL( toggled( bool ) ), SLOT( toggleShowSmallFiles( bool ) ) );
+ connect( useAntialiasing, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( toggleUseAntialiasing( bool ) ) );
+ connect( varyLabelFontSizes, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( toggleVaryLabelFontSizes( bool ) ) );
+ connect( showSmallFiles, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( toggleShowSmallFiles( bool ) ) );
- connect( minFontPitch, SIGNAL ( valueChanged( int ) ), SLOT( changeMinFontPitch( int ) ) );
+ connect( minFontPitch, TQT_SIGNAL ( valueChanged( int ) ), TQT_SLOT( changeMinFontPitch( int ) ) );
m_addButton->setIconSet( SmallIcon( "fileopen" ) );
m_resetButton->setIconSet( SmallIcon( "undo" ) );
@@ -57,7 +57,7 @@ SettingsDialog::SettingsDialog( QWidget *parent, const char *name )
}
-void SettingsDialog::closeEvent( QCloseEvent* )
+void SettingsDialog::closeEvent( TQCloseEvent* )
{
//if an invalidation is pending, force it now!
if( m_timer.isActive() ) m_timer.changeInterval( 0 );
@@ -90,7 +90,7 @@ void SettingsDialog::reset()
if( colourSchemeGroup->id( colourSchemeGroup->selected() ) != Config::scheme )
{
colourSchemeGroup->setButton( Config::scheme );
- //setButton doesn't call a single QButtonGroup signal!
+ //setButton doesn't call a single TQButtonGroup signal!
//so we need to call this ourselves (and hence the detection above)
changeScheme( Config::scheme );
}
@@ -135,9 +135,9 @@ void SettingsDialog::addDirectory()
if( !url.isEmpty() )
{
- const QString path = url.path( 1 );
+ const TQString path = url.path( 1 );
- if( !Config::skipList.contains( path ) )
+ if( !Config::skipList.tqcontains( path ) )
{
Config::skipList.append( path );
m_listBox->insertItem( path );
@@ -208,7 +208,7 @@ void SettingsDialog::reject()
{
//called when escape is pressed
reset();
- QDialog::reject(); //**** doesn't change back scheme so far
+ TQDialog::reject(); //**** doesn't change back scheme so far
}
#include "settingsDialog.moc"