summaryrefslogtreecommitdiffstats
path: root/src/modules/sharedfileswindow
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-16 09:57:20 -0600
committerTimothy Pearson <[email protected]>2011-12-16 09:57:20 -0600
commitc6611272c2bc4a42580848946c8c5d81bb0409c7 (patch)
tree0fd5b58844663dfcd00fb2b79cf67dd0fd429c62 /src/modules/sharedfileswindow
parent805c2821ceaddada48b346c6d11bd0dc1351a539 (diff)
downloadkvirc-c6611272c2bc4a42580848946c8c5d81bb0409c7.tar.gz
kvirc-c6611272c2bc4a42580848946c8c5d81bb0409c7.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 805c2821ceaddada48b346c6d11bd0dc1351a539.
Diffstat (limited to 'src/modules/sharedfileswindow')
-rw-r--r--src/modules/sharedfileswindow/sharedfileswindow.cpp22
-rw-r--r--src/modules/sharedfileswindow/sharedfileswindow.h2
2 files changed, 12 insertions, 12 deletions
diff --git a/src/modules/sharedfileswindow/sharedfileswindow.cpp b/src/modules/sharedfileswindow/sharedfileswindow.cpp
index 564d8392..157e3757 100644
--- a/src/modules/sharedfileswindow/sharedfileswindow.cpp
+++ b/src/modules/sharedfileswindow/sharedfileswindow.cpp
@@ -44,7 +44,7 @@
#include <tqsplitter.h>
#include "kvi_tal_hbox.h"
#include "kvi_tal_vbox.h"
-#include <layout.h>
+#include <tqlayout.h>
#include <tqcheckbox.h>
#include <tqmessagebox.h>
#include <tqfileinfo.h>
@@ -115,7 +115,7 @@ KviSharedFileEditDialog::KviSharedFileEditDialog(TQWidget * par,KviSharedFile *
m_pExpireDateTimeEdit->setEnabled(f->expires());
} else {
m_pExpireCheckBox->setChecked(false);
- m_pExpireDateTimeEdit->setDateTime(TQDateTime::currentDateTime());
+ m_pExpireDateTimeEdit->setDateTime(TQDateTime::tqcurrentDateTime());
m_pExpireDateTimeEdit->setEnabled(false);
}
@@ -151,7 +151,7 @@ void KviSharedFileEditDialog::okClicked()
TQString szPath = m_pFilePathEdit->text();
TQDateTime dt = m_pExpireDateTimeEdit->dateTime();
bool bExpires = m_pExpireCheckBox->isChecked();
- if(bExpires && (dt <= TQDateTime::currentDateTime()))
+ if(bExpires && (dt <= TQDateTime::tqcurrentDateTime()))
{
TQMessageBox::warning(this,__tr2qs_ctx("Invalid expire time","sharedfileswindow"),
__tr2qs_ctx("The expire date/time is in the past: please either remove the \"expires\"" \
@@ -336,7 +336,7 @@ void KviSharedFilesWindow::tipRequest(KviDynamicToolTip * tip,const TQPoint &pnt
KviSharedFilesItem * it = (KviSharedFilesItem *)m_pListView->itemAt(pnt);
if(!it)return;
TQString txt = it->transfer()->tipText();
- tip->tip(m_pListView->itemRect(it),txt);
+ tip->tip(m_pListView->tqitemRect(it),txt);
}
*/
@@ -411,7 +411,7 @@ void KviSharedFilesWindow::rightButtonPressed(KviTalListViewItem *it,const TQPoi
if(fi.exists())
{
tmp += "<nobr>";
- tmp += __tr2qs_ctx("Size: %1 bytes","filetransferwindow").arg(fi.size());
+ tmp += __tr2qs_ctx("Size: %1 bytes","filetransferwindow").tqarg(fi.size());
tmp += "</nobr><br>";
}
@@ -592,10 +592,10 @@ void KviSharedFilesWindow::copyLocalFileToClipboard()
if(!t)return;
TQString tmp = t->localFileName();
if(tmp.isEmpty())return;
- TQApplication::clipboard()->setSelectionMode(false);
- TQApplication::clipboard()->setText(tmp);
- TQApplication::clipboard()->setSelectionMode(true);
- TQApplication::clipboard()->setText(tmp);
+ TQApplication::tqclipboard()->setSelectionMode(false);
+ TQApplication::tqclipboard()->setText(tmp);
+ TQApplication::tqclipboard()->setSelectionMode(true);
+ TQApplication::tqclipboard()->setText(tmp);
}
void KviSharedFilesWindow::openLocalFileFolder()
@@ -679,9 +679,9 @@ void KviSharedFilesWindow::resizeEvent(TQResizeEvent *e)
//m_pInput->setGeometry(0,height() - h,width(),h);
}
-TQSize KviSharedFilesWindow::sizeHint() const
+TQSize KviSharedFilesWindow::tqsizeHint() const
{
- return m_pSplitter->sizeHint();
+ return m_pSplitter->tqsizeHint();
}
void KviSharedFilesWindow::fillCaptionBuffers()
diff --git a/src/modules/sharedfileswindow/sharedfileswindow.h b/src/modules/sharedfileswindow/sharedfileswindow.h
index 2f7f0278..4832dc88 100644
--- a/src/modules/sharedfileswindow/sharedfileswindow.h
+++ b/src/modules/sharedfileswindow/sharedfileswindow.h
@@ -102,7 +102,7 @@ protected:
virtual void resizeEvent(TQResizeEvent *e);
virtual void getBaseLogFileName(KviStr &buffer);
public:
- virtual TQSize sizeHint() const;
+ virtual TQSize tqsizeHint() const;
protected slots:
void fillFileView();
void sharedFileAdded(KviSharedFile * f);