summaryrefslogtreecommitdiffstats
path: root/src/svnfrontend/editproperty_impl.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-04 19:54:24 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-04 19:54:24 +0000
commitd7633c195a464e4d344ada9eea61afd10110598a (patch)
tree1f2da0b135f3ed84955e340cae823f00c4ce7284 /src/svnfrontend/editproperty_impl.cpp
parent3fa7eb804f67b2789f128075cc2522f398640250 (diff)
downloadtdesvn-d7633c195a464e4d344ada9eea61afd10110598a.tar.gz
tdesvn-d7633c195a464e4d344ada9eea61afd10110598a.zip
Port kdesvn to TQt4
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdesvn@1230412 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/svnfrontend/editproperty_impl.cpp')
-rw-r--r--src/svnfrontend/editproperty_impl.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/svnfrontend/editproperty_impl.cpp b/src/svnfrontend/editproperty_impl.cpp
index eef6218..8fe82fe 100644
--- a/src/svnfrontend/editproperty_impl.cpp
+++ b/src/svnfrontend/editproperty_impl.cpp
@@ -17,9 +17,9 @@
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include <qstringlist.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <tqstringlist.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
#include <ktextedit.h>
#include <kcombobox.h>
@@ -30,8 +30,8 @@
#include "editproperty_impl.h"
-EditProperty_impl::EditProperty_impl(QWidget *parent, const char *name)
- :EditPropsDlgData(parent, name)
+EditProperty_impl::EditProperty_impl(TQWidget *tqparent, const char *name)
+ :EditPropsDlgData(tqparent, name)
{
/// @TODO Read these values from a text or config file
fileProperties += ("svn:eol-style");
@@ -44,7 +44,7 @@ EditProperty_impl::EditProperty_impl(QWidget *parent, const char *name)
fileComments += i18n("If present, make the file executable.<br>"
"This property can not be set on a directory. "
"A non-recursive attempt will fail, and a recursive attempt "
- "will set the property only on the file children of the folder.");
+ "will set the property only on the file tqchildren of the folder.");
fileComments += i18n("Keywords to be expanded into the contents of a file.<br>"
"They can be inserted into documents by placing a keyword anchor "
"which is formatted as $KeywordName$.<br>"
@@ -80,7 +80,7 @@ EditProperty_impl::EditProperty_impl(QWidget *parent, const char *name)
dirComments += i18n("If present, make the file executable.<br>"
"This property can not be set on a directory. "
"A non-recursive attempt will fail, and a recursive attempt "
- "will set the property only on the file children of the folder.");
+ "will set the property only on the file tqchildren of the folder.");
/* TRANSLATORS: Do not translate "example" in the URL because this is according
TRANSLATORS: to http://www.rfc-editor.org/rfc/rfc2606.txt a reserved URL.*/
dirComments += i18n("A newline separated list of module specifiers, each "
@@ -122,8 +122,8 @@ EditProperty_impl::EditProperty_impl(QWidget *parent, const char *name)
m_NameEdit->setHistoryItems(fileProperties, true);
isDir = false;
- QToolTip::add(m_NameEdit, "Select or enter new property");
- connect(m_NameEdit, SIGNAL(activated(const QString &)), this, SLOT(updateToolTip(const QString &)));
+ TQToolTip::add(m_NameEdit, "Select or enter new property");
+ connect(m_NameEdit, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(updateToolTip(const TQString &)));
}
@@ -132,19 +132,19 @@ EditProperty_impl::~EditProperty_impl() {
}
-void EditProperty_impl::updateToolTip(const QString & selection)
+void EditProperty_impl::updateToolTip(const TQString & selection)
{
int i;
if (isDir) {
- i = dirProperties.findIndex(selection);
+ i = dirProperties.tqfindIndex(selection);
if (i >= 0) {
comment = dirComments[i];
} else {
comment = "No help for this property available";
}
} else {
- i = fileProperties.findIndex(selection);
+ i = fileProperties.tqfindIndex(selection);
if (i >= 0) {
comment = fileComments[i];
} else {
@@ -152,7 +152,7 @@ void EditProperty_impl::updateToolTip(const QString & selection)
}
}
- QToolTip::add(m_NameEdit, comment);
+ TQToolTip::add(m_NameEdit, comment);
}
void EditProperty_impl::setDir(bool dir)
@@ -173,18 +173,18 @@ void EditProperty_impl::setDir(bool dir)
}
-QString EditProperty_impl::propName()const
+TQString EditProperty_impl::propName()const
{
return m_NameEdit->currentText();
}
-QString EditProperty_impl::propValue()const
+TQString EditProperty_impl::propValue()const
{
return m_ValueEdit->text();
}
-void EditProperty_impl::setPropName(const QString&n)
+void EditProperty_impl::setPropName(const TQString&n)
{
m_NameEdit->addToHistory(n);
m_NameEdit->setCurrentItem(n);
@@ -192,17 +192,17 @@ void EditProperty_impl::setPropName(const QString&n)
}
-void EditProperty_impl::setPropValue(const QString&v)
+void EditProperty_impl::setPropValue(const TQString&v)
{
m_ValueEdit->setText(v);
}
void EditProperty_impl::showHelp()
{
- QPoint pos = m_ValueEdit->pos();
+ TQPoint pos = m_ValueEdit->pos();
pos.setX(pos.x() + m_ValueEdit->width()/2);
pos.setY(pos.y() + m_ValueEdit->height()/4);
- QWhatsThis::display(comment, mapToGlobal(pos));
+ TQWhatsThis::display(comment, mapToGlobal(pos));
}