summaryrefslogtreecommitdiffstats
path: root/karm/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'karm/mainwindow.cpp')
-rw-r--r--karm/mainwindow.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/karm/mainwindow.cpp b/karm/mainwindow.cpp
index 6a80fa009..4440ab1a5 100644
--- a/karm/mainwindow.cpp
+++ b/karm/mainwindow.cpp
@@ -47,7 +47,7 @@ MainWindow::MainWindow( const TQString &icsfile )
setCentralWidget( _taskView );
// status bar
- startStatusBar();
+ starStatusBar();
// setup PreferenceDialog.
_preferences = Preferences::instance();
@@ -63,8 +63,8 @@ MainWindow::MainWindow( const TQString &icsfile )
this, TQT_SLOT(slotSelectionChanged()));
connect( _taskView, TQT_SIGNAL( updateButtons() ),
this, TQT_SLOT(slotSelectionChanged()));
- connect( _taskView, TQT_SIGNAL( setStatusBar( TQString ) ),
- this, TQT_SLOT(setStatusBar( TQString )));
+ connect( _taskView, TQT_SIGNAL( seStatusBar( TQString ) ),
+ this, TQT_SLOT(seStatusBar( TQString )));
loadGeometry();
@@ -134,7 +134,7 @@ void MainWindow::slotSelectionChanged()
// actionAddComment->setEnabled( on );
//}
-void MainWindow::setStatusBar(TQString qs)
+void MainWindow::seStatusBar(TQString qs)
{
statusBar()->message(i18n(qs.ascii()));
}
@@ -208,7 +208,7 @@ void MainWindow::updateStatusBar( )
statusBar()->changeItem( i18n("Total: %1" ).arg(time), 1);
}
-void MainWindow::startStatusBar()
+void MainWindow::starStatusBar()
{
statusBar()->insertItem( i18n("Session"), 0, 0, true );
statusBar()->insertItem( i18n("Total" ), 1, 0, true );
@@ -272,12 +272,12 @@ void MainWindow::makeMenus()
actionCollection(),
"reset_all_times");
actionStart = new KAction( i18n("&Start"),
- TQString::fromLatin1("1rightarrow"), Key_S,
+ TQString::tqfromLatin1("1rightarrow"), Key_S,
_taskView,
TQT_SLOT( startCurrentTimer() ), actionCollection(),
"start");
actionStop = new KAction( i18n("S&top"),
- TQString::fromLatin1("stop"), Key_S,
+ TQString::tqfromLatin1("stop"), Key_S,
_taskView,
TQT_SLOT( stopCurrentTimer() ), actionCollection(),
"stop");
@@ -289,48 +289,48 @@ void MainWindow::makeMenus()
actionStopAll->setEnabled(false);
actionNew = new KAction( i18n("&New..."),
- TQString::fromLatin1("filenew"), CTRL+Key_N,
+ TQString::tqfromLatin1("filenew"), CTRL+Key_N,
_taskView,
TQT_SLOT( newTask() ), actionCollection(),
"new_task");
actionNewSub = new KAction( i18n("New &Subtask..."),
- TQString::fromLatin1("kmultiple"), CTRL+ALT+Key_N,
+ TQString::tqfromLatin1("kmultiple"), CTRL+ALT+Key_N,
_taskView,
TQT_SLOT( newSubTask() ), actionCollection(),
"new_sub_task");
actionDelete = new KAction( i18n("&Delete"),
- TQString::fromLatin1("editdelete"), Key_Delete,
+ TQString::tqfromLatin1("editdelete"), Key_Delete,
_taskView,
TQT_SLOT( deleteTask() ), actionCollection(),
"delete_task");
actionEdit = new KAction( i18n("&Edit..."),
- TQString::fromLatin1("edit"), CTRL + Key_E,
+ TQString::tqfromLatin1("edit"), CTRL + Key_E,
_taskView,
TQT_SLOT( editTask() ), actionCollection(),
"edit_task");
// actionAddComment = new KAction( i18n("&Add Comment..."),
-// TQString::fromLatin1("document"),
+// TQString::tqfromLatin1("document"),
// CTRL+ALT+Key_E,
// _taskView,
// TQT_SLOT( addCommentToTask() ),
// actionCollection(),
// "add_comment_to_task");
actionMarkAsComplete = new KAction( i18n("&Mark as Complete"),
- TQString::fromLatin1("document"),
+ TQString::tqfromLatin1("document"),
CTRL+Key_M,
_taskView,
TQT_SLOT( markTaskAsComplete() ),
actionCollection(),
"mark_as_complete");
actionMarkAsIncomplete = new KAction( i18n("&Mark as Incomplete"),
- TQString::fromLatin1("document"),
+ TQString::tqfromLatin1("document"),
CTRL+Key_M,
_taskView,
TQT_SLOT( markTaskAsIncomplete() ),
actionCollection(),
"mark_as_incomplete");
actionClipTotals = new KAction( i18n("&Copy Totals to Clipboard"),
- TQString::fromLatin1("klipper"),
+ TQString::tqfromLatin1("klipper"),
CTRL+Key_C,
_taskView,
TQT_SLOT( clipTotals() ),
@@ -338,14 +338,14 @@ void MainWindow::makeMenus()
"clip_totals");
// actionClipTotals will never be used again, overwrite it
actionClipTotals = new KAction( i18n("&Copy Session Time to Clipboard"),
- TQString::fromLatin1("klipper"),
+ TQString::tqfromLatin1("klipper"),
0,
_taskView,
TQT_SLOT( clipSession() ),
actionCollection(),
"clip_session");
actionClipHistory = new KAction( i18n("Copy &History to Clipboard"),
- TQString::fromLatin1("klipper"),
+ TQString::tqfromLatin1("klipper"),
CTRL+ALT+Key_C,
_taskView,
TQT_SLOT( clipHistory() ),
@@ -372,7 +372,7 @@ void MainWindow::makeMenus()
"import_korg_events");
*/
- setXMLFile( TQString::fromLatin1("karmui.rc") );
+ setXMLFile( TQString::tqfromLatin1("karmui.rc") );
createGUI( 0 );
// Tool tips must be set after the createGUI.
@@ -442,11 +442,11 @@ void MainWindow::loadGeometry()
{
KConfig &config = *kapp->config();
- config.setGroup( TQString::fromLatin1("Main Window Geometry") );
- int w = config.readNumEntry( TQString::fromLatin1("Width"), 100 );
- int h = config.readNumEntry( TQString::fromLatin1("Height"), 100 );
- w = QMAX( w, sizeHint().width() );
- h = QMAX( h, sizeHint().height() );
+ config.setGroup( TQString::tqfromLatin1("Main Window Geometry") );
+ int w = config.readNumEntry( TQString::tqfromLatin1("Width"), 100 );
+ int h = config.readNumEntry( TQString::tqfromLatin1("Height"), 100 );
+ w = QMAX( w, tqsizeHint().width() );
+ h = QMAX( h, tqsizeHint().height() );
resize(w, h);
}
}
@@ -455,9 +455,9 @@ void MainWindow::loadGeometry()
void MainWindow::saveGeometry()
{
KConfig &config = *KGlobal::config();
- config.setGroup( TQString::fromLatin1("Main Window Geometry"));
- config.writeEntry( TQString::fromLatin1("Width"), width());
- config.writeEntry( TQString::fromLatin1("Height"), height());
+ config.setGroup( TQString::tqfromLatin1("Main Window Geometry"));
+ config.writeEntry( TQString::tqfromLatin1("Width"), width());
+ config.writeEntry( TQString::tqfromLatin1("Height"), height());
config.sync();
}