summaryrefslogtreecommitdiffstats
path: root/kpf/src/Applet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpf/src/Applet.cpp')
-rw-r--r--kpf/src/Applet.cpp86
1 files changed, 43 insertions, 43 deletions
diff --git a/kpf/src/Applet.cpp b/kpf/src/Applet.cpp
index edd7a652..0eee06c8 100644
--- a/kpf/src/Applet.cpp
+++ b/kpf/src/Applet.cpp
@@ -21,14 +21,14 @@
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#include <qpainter.h>
-#include <qtimer.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qtoolbutton.h>
-#include <qpopupmenu.h>
-#include <qfileinfo.h>
-#include <qcursor.h>
+#include <tqpainter.h>
+#include <tqtimer.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqtoolbutton.h>
+#include <tqpopupmenu.h>
+#include <tqfileinfo.h>
+#include <tqcursor.h>
#include <dcopclient.h>
#include <kiconloader.h>
@@ -54,7 +54,7 @@ static const char kpfVersion[] = "1.0.1";
extern "C"
{
KDE_EXPORT KPanelApplet *
- init(QWidget * parent, const QString & configFile)
+ init(TQWidget * parent, const TQString & configFile)
{
if (0 == kpf::userId() || 0 == kpf::effectiveUserId())
{
@@ -90,10 +90,10 @@ namespace KPF
{
Applet::Applet
(
- const QString & configFile,
+ const TQString & configFile,
Type type,
int actions,
- QWidget * parent,
+ TQWidget * parent,
const char * name
)
: KPanelApplet (configFile, type, actions, parent, name),
@@ -103,26 +103,26 @@ namespace KPF
{
setAcceptDrops(true);
- //setFrameStyle(QFrame::Panel | QFrame::Sunken);
+ //setFrameStyle(TQFrame::Panel | TQFrame::Sunken);
//setLineWidth(1);
connect
(
WebServerManager::instance(),
- SIGNAL(serverCreated(WebServer *)),
- SLOT(slotServerCreated(WebServer *))
+ TQT_SIGNAL(serverCreated(WebServer *)),
+ TQT_SLOT(slotServerCreated(WebServer *))
);
connect
(
WebServerManager::instance(),
- SIGNAL(serverDisabled(WebServer *)),
- SLOT(slotServerDisabled(WebServer *))
+ TQT_SIGNAL(serverDisabled(WebServer *)),
+ TQT_SLOT(slotServerDisabled(WebServer *))
);
WebServerManager::instance()->loadConfig();
- popup_ = new QPopupMenu(this);
+ popup_ = new TQPopupMenu(this);
popup_->insertItem
(BarIcon("filenew"), i18n("New Server..."), NewServer, NewServer);
@@ -171,7 +171,7 @@ namespace KPF
void
Applet::help()
{
- kapp->invokeHelp( QString::null, "kpf" );
+ kapp->invokeHelp( TQString::null, "kpf" );
}
void
@@ -226,15 +226,15 @@ namespace KPF
}
void
- Applet::resizeEvent(QResizeEvent *)
+ Applet::resizeEvent(TQResizeEvent *)
{
resetLayout();
}
void
- Applet::moveEvent(QMoveEvent *)
+ Applet::moveEvent(TQMoveEvent *)
{
- QPtrListIterator<AppletItem> it(itemList_);
+ TQPtrListIterator<AppletItem> it(itemList_);
for (uint i = 0; it.current(); ++it, ++i)
it.current()->setBackground();
@@ -252,7 +252,7 @@ namespace KPF
{
uint itemHeight = height() / itemList_.count();
- QPtrListIterator<AppletItem> it(itemList_);
+ TQPtrListIterator<AppletItem> it(itemList_);
for (uint i = 0; it.current(); ++it, ++i)
{
@@ -266,7 +266,7 @@ namespace KPF
{
uint itemWidth = width() / itemList_.count();
- QPtrListIterator<AppletItem> it(itemList_);
+ TQPtrListIterator<AppletItem> it(itemList_);
for (uint i = 0; it.current(); ++it, ++i)
{
@@ -280,12 +280,12 @@ namespace KPF
}
void
- Applet::mousePressEvent(QMouseEvent * ev)
+ Applet::mousePressEvent(TQMouseEvent * ev)
{
if (Qt::RightButton != ev->button() && Qt::LeftButton != ev->button())
return;
- switch (popup_->exec(QCursor::pos()))
+ switch (popup_->exec(TQCursor::pos()))
{
case NewServer:
slotNewServer();
@@ -301,7 +301,7 @@ namespace KPF
}
void
- Applet::slotNewServerAtLocation(const QString & location)
+ Applet::slotNewServerAtLocation(const TQString & location)
{
if (0 != wizard_)
{
@@ -316,8 +316,8 @@ namespace KPF
connect
(
wizard_,
- SIGNAL(dying(ServerWizard *)),
- SLOT(slotWizardDying(ServerWizard *))
+ TQT_SIGNAL(dying(ServerWizard *)),
+ TQT_SLOT(slotWizardDying(ServerWizard *))
);
wizard_->setLocation(location);
@@ -338,8 +338,8 @@ namespace KPF
connect
(
wizard_,
- SIGNAL(dying(ServerWizard *)),
- SLOT(slotWizardDying(ServerWizard *))
+ TQT_SIGNAL(dying(ServerWizard *)),
+ TQT_SLOT(slotWizardDying(ServerWizard *))
);
wizard_->show();
@@ -349,7 +349,7 @@ namespace KPF
void
Applet::slotWizardDying(ServerWizard * wiz)
{
- if (QDialog::Accepted == wiz->result())
+ if (TQDialog::Accepted == wiz->result())
{
WebServerManager::instance()->createServerLocal
(
@@ -367,9 +367,9 @@ namespace KPF
}
void
- Applet::drawContents(QPainter * p)
+ Applet::drawContents(TQPainter * p)
{
- QPixmap px;
+ TQPixmap px;
if (width() > 48)
px = KGlobal::iconLoader()->loadIcon("kpf", KIcon::Panel, 48);
@@ -380,7 +380,7 @@ namespace KPF
else
return;
- QRect r(contentsRect());
+ TQRect r(contentsRect());
p->drawPixmap
(
@@ -391,7 +391,7 @@ namespace KPF
}
void
- Applet::dragEnterEvent(QDragEnterEvent * e)
+ Applet::dragEnterEvent(TQDragEnterEvent * e)
{
KURL::List l;
@@ -403,14 +403,14 @@ namespace KPF
const KURL &url = l[0];
- if (!url.isLocalFile() || !QFileInfo(url.path()).isDir())
+ if (!url.isLocalFile() || !TQFileInfo(url.path()).isDir())
return;
e->accept();
}
void
- Applet::dropEvent(QDropEvent * e)
+ Applet::dropEvent(TQDropEvent * e)
{
KURL::List l;
@@ -422,7 +422,7 @@ namespace KPF
const KURL &url = l[0];
- if (!url.isLocalFile() || !QFileInfo(url.path()).isDir())
+ if (!url.isLocalFile() || !TQFileInfo(url.path()).isDir())
return;
e->accept();
@@ -438,15 +438,15 @@ namespace KPF
connect
(
i,
- SIGNAL(newServer()),
- SLOT(slotNewServer())
+ TQT_SIGNAL(newServer()),
+ TQT_SLOT(slotNewServer())
);
connect
(
i,
- SIGNAL(newServerAtLocation(const QString &)),
- SLOT(slotNewServerAtLocation(const QString &))
+ TQT_SIGNAL(newServerAtLocation(const TQString &)),
+ TQT_SLOT(slotNewServerAtLocation(const TQString &))
);
itemList_.append(i);
@@ -458,7 +458,7 @@ namespace KPF
void
Applet::slotServerDisabled(WebServer * server)
{
- QPtrListIterator<AppletItem> it(itemList_);
+ TQPtrListIterator<AppletItem> it(itemList_);
for (; it.current(); ++it)
{