diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-16 20:17:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-16 20:17:18 +0000 |
commit | f4fae92b6768541e2952173c3d4b09040f95bf7e (patch) | |
tree | d8c5d93232235cd635f3310b4d95490df181ba2d /kalarm/mainwindow.cpp | |
parent | 125c0a08265b75a133644d3b55f47e37c919f45d (diff) | |
download | tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip |
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/mainwindow.cpp')
-rw-r--r-- | kalarm/mainwindow.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/kalarm/mainwindow.cpp b/kalarm/mainwindow.cpp index a3e8e423f..6ebe19c81 100644 --- a/kalarm/mainwindow.cpp +++ b/kalarm/mainwindow.cpp @@ -71,11 +71,11 @@ using namespace KCal; static const char* UI_FILE = "kalarmui.rc"; static const char* WINDOW_NAME = "MainWindow"; -static const TQString VIEW_GROUP = TQString::fromLatin1("View"); -static const TQString SHOW_TIME_KEY = TQString::fromLatin1("ShowAlarmTime"); -static const TQString SHOW_TIME_TO_KEY = TQString::fromLatin1("ShowTimeToAlarm"); -static const TQString SHOW_ARCHIVED_KEY = TQString::fromLatin1("ShowArchivedAlarms"); -static const TQString SHOW_RESOURCES_KEY = TQString::fromLatin1("ShowResources"); +static const TQString VIEW_GROUP = TQString::tqfromLatin1("View"); +static const TQString SHOW_TIME_KEY = TQString::tqfromLatin1("ShowAlarmTime"); +static const TQString SHOW_TIME_TO_KEY = TQString::tqfromLatin1("ShowTimeToAlarm"); +static const TQString SHOW_ARCHIVED_KEY = TQString::tqfromLatin1("ShowArchivedAlarms"); +static const TQString SHOW_RESOURCES_KEY = TQString::tqfromLatin1("ShowResources"); static TQString undoText; static TQString undoTextStripped; @@ -123,7 +123,7 @@ MainWindow::MainWindow(bool restored) mHiddenTrayParent(false) { kdDebug(5950) << "MainWindow::MainWindow()\n"; - setAutoSaveSettings(TQString::fromLatin1(WINDOW_NAME)); // save window sizes etc. + setAutoSaveSettings(TQString::tqfromLatin1(WINDOW_NAME)); // save window sizes etc. setPlainCaption(kapp->aboutData()->programName()); KConfig* config = KGlobal::config(); config->setGroup(VIEW_GROUP); @@ -136,8 +136,8 @@ MainWindow::MainWindow(bool restored) if (KAlarm::readConfigWindowSize(WINDOW_NAME, s)) resize(s); } - config->setGroup(TQString::fromLatin1(WINDOW_NAME)); - TQValueList<int> order = config->readIntListEntry(TQString::fromLatin1("ColumnOrder")); + config->setGroup(TQString::tqfromLatin1(WINDOW_NAME)); + TQValueList<int> order = config->readIntListEntry(TQString::tqfromLatin1("ColumnOrder")); setAcceptDrops(true); // allow drag-and-drop onto this window if (!mShowTimeTo) @@ -201,10 +201,10 @@ MainWindow::~MainWindow() */ void MainWindow::saveProperties(KConfig* config) { - config->writeEntry(TQString::fromLatin1("HiddenTrayParent"), isTrayParent() && isHidden()); - config->writeEntry(TQString::fromLatin1("ShowExpired"), mShowExpired); - config->writeEntry(TQString::fromLatin1("ShowTime"), mShowTime); - config->writeEntry(TQString::fromLatin1("ShowTimeTo"), mShowTimeTo); + config->writeEntry(TQString::tqfromLatin1("HiddenTrayParent"), isTrayParent() && isHidden()); + config->writeEntry(TQString::tqfromLatin1("ShowExpired"), mShowExpired); + config->writeEntry(TQString::tqfromLatin1("ShowTime"), mShowTime); + config->writeEntry(TQString::tqfromLatin1("ShowTimeTo"), mShowTimeTo); } /****************************************************************************** @@ -214,10 +214,10 @@ void MainWindow::saveProperties(KConfig* config) */ void MainWindow::readProperties(KConfig* config) { - mHiddenTrayParent = config->readBoolEntry(TQString::fromLatin1("HiddenTrayParent")); - mShowExpired = config->readBoolEntry(TQString::fromLatin1("ShowExpired")); - mShowTime = config->readBoolEntry(TQString::fromLatin1("ShowTime")); - mShowTimeTo = config->readBoolEntry(TQString::fromLatin1("ShowTimeTo")); + mHiddenTrayParent = config->readBoolEntry(TQString::tqfromLatin1("HiddenTrayParent")); + mShowExpired = config->readBoolEntry(TQString::tqfromLatin1("ShowExpired")); + mShowTime = config->readBoolEntry(TQString::tqfromLatin1("ShowTime")); + mShowTimeTo = config->readBoolEntry(TQString::tqfromLatin1("ShowTimeTo")); } /****************************************************************************** @@ -294,7 +294,7 @@ void MainWindow::show() // Show error message now that the main window has been displayed. // Waiting until now lets the user easily associate the message with // the main window which is faulty. - KMessageBox::error(this, i18n("Failure to create menus\n(perhaps %1 missing or corrupted)").arg(TQString::fromLatin1(UI_FILE))); + KMessageBox::error(this, i18n("Failure to create menus\n(perhaps %1 missing or corrupted)").arg(TQString::tqfromLatin1(UI_FILE))); mMenuError = false; } } @@ -315,8 +315,8 @@ void MainWindow::hideEvent(TQHideEvent* he) void MainWindow::columnsReordered() { KConfig* config = KGlobal::config(); - config->setGroup(TQString::fromLatin1(WINDOW_NAME)); - config->writeEntry(TQString::fromLatin1("ColumnOrder"), mListView->columnOrder()); + config->setGroup(TQString::tqfromLatin1(WINDOW_NAME)); + config->writeEntry(TQString::tqfromLatin1("ColumnOrder"), mListView->columnOrder()); config->sync(); } @@ -367,8 +367,8 @@ void MainWindow::initActions() mActionUndo = new KToolBarPopupAction(undoText, undoIcon, undoShortcut, this, TQT_SLOT(slotUndo()), actions, "edit_undo"); mActionRedo = new KToolBarPopupAction(redoText, redoIcon, redoShortcut, this, TQT_SLOT(slotRedo()), actions, "edit_redo"); KStdAction::find(mListView, TQT_SLOT(slotFind()), actions); - mActionFindNext = KStdAction::findNext(mListView, TQT_SLOT(slotFindNext()), actions); - mActionFindPrev = KStdAction::findPrev(mListView, TQT_SLOT(slotFindPrev()), actions); + mActionFindNext = KStdAction::tqfindNext(mListView, TQT_SLOT(slotFindNext()), actions); + mActionFindPrev = KStdAction::tqfindPrev(mListView, TQT_SLOT(slotFindPrev()), actions); KStdAction::selectAll(mListView, TQT_SLOT(slotSelectAll()), actions); KStdAction::deselect(mListView, TQT_SLOT(slotDeselect()), actions); KStdAction::quit(this, TQT_SLOT(slotQuit()), actions); @@ -1196,7 +1196,7 @@ void MainWindow::executeDropEvent(MainWindow* win, TQDropEvent* e) AlarmText alarmText; KPIM::MailList mailList; KURL::List files; - KCal::CalendarLocal calendar(TQString::fromLatin1("UTC")); + KCal::CalendarLocal calendar(TQString::tqfromLatin1("UTC")); calendar.setLocalTime(); // default to local time (i.e. no time zone) #ifndef NDEBUG TQCString fmts; @@ -1213,7 +1213,7 @@ void MainWindow::executeDropEvent(MainWindow* win, TQDropEvent* e) * Don't change them without careful thought !! */ if (e->provides("message/rfc822") - && !(bytes = e->encodedData("message/rfc822")).isEmpty()) + && !(bytes = e->tqencodedData("message/rfc822")).isEmpty()) { // Email message(s). Ignore all but the first. kdDebug(5950) << "MainWindow::executeDropEvent(email)" << endl; @@ -1299,7 +1299,7 @@ void MainWindow::slotSelection() bool enableEnableDisable = true; bool enableEnable = false; bool enableDisable = false; - TQDateTime now = TQDateTime::currentDateTime(); + TQDateTime now = TQDateTime::tqcurrentDateTime(); for (TQValueList<EventListViewItemBase*>::Iterator it = items.begin(); it != items.end(); ++it) { const KAEvent& event = ((AlarmListViewItem*)(*it))->event(); |