summaryrefslogtreecommitdiffstats
path: root/kcontrol/samba/kcmsambalog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kcontrol/samba/kcmsambalog.cpp')
-rw-r--r--kcontrol/samba/kcmsambalog.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kcontrol/samba/kcmsambalog.cpp b/kcontrol/samba/kcmsambalog.cpp
index c25a01113..fdb21bb1e 100644
--- a/kcontrol/samba/kcmsambalog.cpp
+++ b/kcontrol/samba/kcmsambalog.cpp
@@ -59,7 +59,7 @@ LogView::LogView(TQWidget *parent,TDEConfig *config, const char *name)
subLayout->addWidget(&showConnClose,1,0);
subLayout->addWidget(&showFileOpen,0,1);
subLayout->addWidget(&showFileClose,1,1);
- mainLayout->addWidget(&updateButton,0,Qt::AlignLeft);
+ mainLayout->addWidget(&updateButton,0,TQt::AlignLeft);
TQWhatsThis::add( &logFileName, i18n("This page presents the contents of"
" your samba log file in a friendly layout. Check that the correct log"
@@ -90,8 +90,8 @@ LogView::LogView(TQWidget *parent,TDEConfig *config, const char *name)
logFileName.setURL("/var/log/samba.log");
- viewHistory.setAllColumnsShowFocus(TRUE);
- viewHistory.setFocusPolicy(TQ_ClickFocus);
+ viewHistory.setAllColumnsShowFocus(true);
+ viewHistory.setFocusPolicy(TQWidget::ClickFocus);
viewHistory.setShowSortIndicator(true);
viewHistory.addColumn(i18n("Date & Time"),130);
@@ -108,12 +108,12 @@ LogView::LogView(TQWidget *parent,TDEConfig *config, const char *name)
" If the list is empty, try clicking the \"Update\" button. The samba"
" log file will be read and the list refreshed.") );
- showConnOpen.setChecked(TRUE);
- showConnClose.setChecked(TRUE);
- showFileOpen.setChecked(FALSE);
- showFileClose.setChecked(FALSE);
+ showConnOpen.setChecked(true);
+ showConnClose.setChecked(true);
+ showFileOpen.setChecked(false);
+ showFileClose.setChecked(false);
- connect(&updateButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(updateList()));
+ connect(&updateButton,TQ_SIGNAL(clicked()),this,TQ_SLOT(updateList()));
emit contentsChanged(&viewHistory,0,0);
label.setMinimumSize(label.sizeHint());
@@ -132,10 +132,10 @@ void LogView::loadSettings()
configFile->setGroup(LOGGROUPNAME);
logFileName.setURL(configFile->readPathEntry( "SambaLogFile", "/var/log/samba.log"));
- showConnOpen.setChecked(configFile->readBoolEntry( "ShowConnectionOpen", TRUE));
- showConnClose.setChecked(configFile->readBoolEntry( "ShowConnectionClose", FALSE));
- showFileOpen.setChecked(configFile->readBoolEntry( "ShowFileOpen", TRUE));
- showFileClose.setChecked(configFile->readBoolEntry( "ShowFileClose", FALSE));
+ showConnOpen.setChecked(configFile->readBoolEntry( "ShowConnectionOpen", true));
+ showConnClose.setChecked(configFile->readBoolEntry( "ShowConnectionClose", false));
+ showFileOpen.setChecked(configFile->readBoolEntry( "ShowFileOpen", true));
+ showFileClose.setChecked(configFile->readBoolEntry( "ShowFileClose", false));
}
void LogView::saveSettings()
@@ -161,7 +161,7 @@ void LogView::updateList()
TQFile logFile(logFileName.url());
if (logFile.open(IO_ReadOnly))
{
- TQApplication::setOverrideCursor(tqwaitCursor);
+ TQApplication::setOverrideCursor(TQt::waitCursor);
viewHistory.clear();
filesCount=0;
connectionsCount=0;