summaryrefslogtreecommitdiffstats
path: root/kpilot/fileInstallWidget.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 00:37:32 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 00:37:32 +0000
commitf6f9c296c3f9d39a8c3d0ee64a542a47f450be28 (patch)
treed38fce8091ce66977004a5cb115768c7810aee30 /kpilot/fileInstallWidget.cc
parente340db64991a06761aa6395ffe760b53e4c1dfbc (diff)
downloadkpilot-f6f9c296c3f9d39a8c3d0ee64a542a47f450be28.tar.gz
kpilot-f6f9c296c3f9d39a8c3d0ee64a542a47f450be28.zip
TQt4 port kpilot
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpilot@1238903 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpilot/fileInstallWidget.cc')
-rw-r--r--kpilot/fileInstallWidget.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/kpilot/fileInstallWidget.cc b/kpilot/fileInstallWidget.cc
index 6990930..e8b55de 100644
--- a/kpilot/fileInstallWidget.cc
+++ b/kpilot/fileInstallWidget.cc
@@ -58,9 +58,9 @@
#include "fileInstallWidget.moc"
-FileInstallWidget::FileInstallWidget(TQWidget * parent,
+FileInstallWidget::FileInstallWidget(TQWidget * tqparent,
const TQString & path) :
- PilotComponent(parent, "component_files", path),
+ PilotComponent(tqparent, "component_files", path),
fSaveFileList(false),
fInstaller(0L)
{
@@ -116,7 +116,7 @@ FileInstallWidget::~FileInstallWidget()
static inline bool pdbOrPrc(const TQString &s)
{
- return s.endsWith(CSL1(".pdb"),false) || s.endsWith(CSL1(".prc"),false) ;
+ return s.tqendsWith(CSL1(".pdb"),false) || s.tqendsWith(CSL1(".prc"),false) ;
}
void FileInstallWidget::dragEnterEvent(TQDragEnterEvent *event)
@@ -145,7 +145,7 @@ bool FileInstallWidget::eventFilter(TQObject *watched, TQEvent *event)
{
FUNCTIONSETUP;
- if(watched == fIconView->viewport())
+ if(TQT_BASE_OBJECT(watched) == TQT_BASE_OBJECT(fIconView->viewport()))
{
if(event->type() == TQEvent::DragEnter) {
dragEnterEvent(static_cast<TQDragEnterEvent*>(event));
@@ -159,7 +159,7 @@ bool FileInstallWidget::eventFilter(TQObject *watched, TQEvent *event)
}
if(event->type() == TQEvent::MouseButtonPress) {
- contextMenu(static_cast<TQMouseEvent*>(event));
+ contextMenu(TQT_TQMOUSEEVENT(event));
}
}
@@ -214,7 +214,7 @@ void FileInstallWidget::slotAddFile()
if (!shown) return;
TQStringList fileNames = KFileDialog::getOpenFileNames(
- TQString::null, i18n("*.pdb *.prc|PalmOS Databases (*.pdb *.prc)"));
+ TQString(), i18n("*.pdb *.prc|PalmOS Databases (*.pdb *.prc)"));
for (TQStringList::Iterator fileName = fileNames.begin(); fileName != fileNames.end(); ++fileName)
{
@@ -285,7 +285,7 @@ void FileInstallWidget::contextMenu(TQMouseEvent *event)
TQPopupMenu popup(fIconView);
- item = fIconView->findItem(event->pos());
+ item = fIconView->tqfindItem(event->pos());
if(item) {
// Popup for the right clicked item
popup.insertItem(i18n("Delete a single file item","Delete"), 10);