summaryrefslogtreecommitdiffstats
path: root/src/modules/options
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-12-08 13:26:11 +0900
committerMichele Calgaro <[email protected]>2023-12-09 15:45:21 +0900
commit35d1f217751ee0b9b0e04648f288739ef56f0e67 (patch)
tree805f33481b8fa33784668f671bf4a15fe02a82dc /src/modules/options
parent039fcfa844aec2a1ce7a2ce97671504e00ec4c5a (diff)
downloadkvirc-35d1f217751ee0b9b0e04648f288739ef56f0e67.tar.gz
kvirc-35d1f217751ee0b9b0e04648f288739ef56f0e67.zip
Remove various '#define' strings - part 6
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit eab2995851748c44d333fe168a1c141ccee193ab)
Diffstat (limited to 'src/modules/options')
-rw-r--r--src/modules/options/libkvioptions.cpp2
-rw-r--r--src/modules/options/optw_identity.cpp2
-rw-r--r--src/modules/options/optw_servers.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/options/libkvioptions.cpp b/src/modules/options/libkvioptions.cpp
index 73568fff..2ba98233 100644
--- a/src/modules/options/libkvioptions.cpp
+++ b/src/modules/options/libkvioptions.cpp
@@ -213,7 +213,7 @@ static bool options_kvs_cmd_edit(KviKvsModuleCommandCall * c)
if(c->hasSwitch('m',"modal"))
{
- w = TQT_TQWIDGET(g_pApp->activeModalWidget());
+ w = g_pApp->activeModalWidget();
if(!w)w = g_pFrame;
} else {
w = g_pFrame;
diff --git a/src/modules/options/optw_identity.cpp b/src/modules/options/optw_identity.cpp
index 32540453..e2e81b8c 100644
--- a/src/modules/options/optw_identity.cpp
+++ b/src/modules/options/optw_identity.cpp
@@ -325,7 +325,7 @@ KviIdentityGeneralOptionsWidget::KviIdentityGeneralOptionsWidget(TQWidget * pare
"(case insensitive), you can provide alternative nicknames to be used in case"\
"the server refuses to accept the default one.</center>","options"));
#endif
- TQValidator * v = new TQRegExpValidator(TQRegExp("[^-0-9 ][^ ]*"),TQT_TQOBJECT(hb));
+ TQValidator * v = new TQRegExpValidator(TQRegExp("[^-0-9 ][^ ]*"),hb);
sel->setValidator(v);
TQPushButton * pb = new TQPushButton(__tr2qs_ctx("Alternatives...","options"),hb);
diff --git a/src/modules/options/optw_servers.cpp b/src/modules/options/optw_servers.cpp
index 1e465947..adca6260 100644
--- a/src/modules/options/optw_servers.cpp
+++ b/src/modules/options/optw_servers.cpp
@@ -138,7 +138,7 @@ KviNetworkDetailsWidget::KviNetworkDetailsWidget(TQWidget * par,KviIrcNetwork *
l = new TQLabel(__tr2qs_ctx("Nickname:","options"),gbox);
m_pNickEditor = new TQLineEdit(gbox);
- TQValidator * v = new TQRegExpValidator(TQRegExp("[^-0-9 ][^ ]*","options"),TQT_TQOBJECT(gbox));
+ TQValidator * v = new TQRegExpValidator(TQRegExp("[^-0-9 ][^ ]*","options"),gbox);
m_pNickEditor->setValidator(v);
m_pNickEditor->setText(n->nickName());
#ifdef COMPILE_INFO_TIPS
@@ -497,7 +497,7 @@ KviServerDetailsWidget::KviServerDetailsWidget(TQWidget * par,KviIrcServer * s)
l = new TQLabel(__tr2qs_ctx("Nickname:","options"),gbox);
m_pNickEditor = new TQLineEdit(gbox);
- TQValidator * v = new TQRegExpValidator(TQRegExp("[^-0-9 ][^ ]*"),TQT_TQOBJECT(gbox));
+ TQValidator * v = new TQRegExpValidator(TQRegExp("[^-0-9 ][^ ]*"),gbox);
m_pNickEditor->setValidator(v);
m_pNickEditor->setText(s->nickName());
#ifdef COMPILE_INFO_TIPS