summaryrefslogtreecommitdiffstats
path: root/kbiff/kbiff.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-07-02 19:41:37 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-07-02 19:41:37 +0200
commit39500a10a6c3a1403a55c282b0a453bd663d4c56 (patch)
treeebda49ec4e698b7d47ac6c00ed2689a64c52aeb2 /kbiff/kbiff.cpp
parent979e7a713aabb63ffbe53b6a42a90e87bf4d1969 (diff)
downloadkbiff-39500a10a6c3a1403a55c282b0a453bd663d4c56.tar.gz
kbiff-39500a10a6c3a1403a55c282b0a453bd663d4c56.zip
Initial TDE conversion
Diffstat (limited to 'kbiff/kbiff.cpp')
-rw-r--r--kbiff/kbiff.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kbiff/kbiff.cpp b/kbiff/kbiff.cpp
index a87b891..185a8f0 100644
--- a/kbiff/kbiff.cpp
+++ b/kbiff/kbiff.cpp
@@ -11,15 +11,15 @@
#include <ntqtooltip.h>
#include <kaudioplayer.h>
-#include <kconfig.h>
-#include <kglobal.h>
+#include <tdeconfig.h>
+#include <tdeglobal.h>
#include <kiconloader.h>
-#include <klocale.h>
-#include <kmessagebox.h>
-#include <kpopupmenu.h>
+#include <tdelocale.h>
+#include <tdemessagebox.h>
+#include <tdepopupmenu.h>
#include <kprocess.h>
#include <krun.h>
-#include <kwin.h>
+#include <twin.h>
#include "setupdlg.h"
#include "notify.h"
@@ -198,7 +198,7 @@ bool KBiff::isDocked() const
void KBiff::readSessionConfig()
{
- KConfig *config = kapp->sessionConfig();
+ TDEConfig *config = kapp->sessionConfig();
config->setGroup("KBiff");
@@ -354,7 +354,7 @@ void KBiff::saveYourself()
{
if (sessions)
{
- KConfig *config = kapp->sessionConfig();
+ TDEConfig *config = kapp->sessionConfig();
config->setGroup("KBiff");
config->writeEntry("Profile", profile);
@@ -454,7 +454,7 @@ void KBiff::displayPixmap()
pixmap_name = info.dirPath() + "/" + filename;
}
}
- TQString filename = KGlobal::iconLoader()->iconPath( pixmap_name, KIcon::User );
+ TQString filename = TDEGlobal::iconLoader()->iconPath( pixmap_name, TDEIcon::User );
TQFileInfo file(filename);
// at this point, we have the file to display. so display it
@@ -542,8 +542,8 @@ void KBiff::haveNewMail(const int num, const TQString& the_mailbox)
notify_dlg->show();
// half-hearted attempt to center this
- int x_pos = (KApplication::desktop()->width() - notify_dlg->width()) / 2;
- int y_pos = (KApplication::desktop()->height() - notify_dlg->height()) / 2;
+ int x_pos = (TDEApplication::desktop()->width() - notify_dlg->width()) / 2;
+ int y_pos = (TDEApplication::desktop()->height() - notify_dlg->height()) / 2;
notify_dlg->move(x_pos, y_pos);
}
}
@@ -720,7 +720,7 @@ void KBiff::start()
///////////////////////////////////////////////////////////////////////////
void KBiff::popupMenu()
{
- KPopupMenu *popup = new KPopupMenu(0, "popup");
+ TDEPopupMenu *popup = new TDEPopupMenu(0, "popup");
popup->insertTitle(kapp->miniIcon(), profile);
// if secure, disable everything but exit