summaryrefslogtreecommitdiffstats
path: root/src/AboutDialog.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-07-16 15:44:05 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-07-16 15:44:05 +0900
commita30a266067d9d952edc91305bef757557c03717e (patch)
tree7bcabd84594f751001c66b16f3c42a8d459b7773 /src/AboutDialog.cpp
parentd017bd37253ae35b29d82e3277b9adcbb4517dd0 (diff)
downloaduniversal-indent-gui-tqt-a30a266067d9d952edc91305bef757557c03717e.tar.gz
universal-indent-gui-tqt-a30a266067d9d952edc91305bef757557c03717e.zip
Raw Qt->TQt conversion using tde/scripts/conversions/qt3-tqt3/convert_existing_qt3_app_to_tqt3.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/AboutDialog.cpp')
-rwxr-xr-xsrc/AboutDialog.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/AboutDialog.cpp b/src/AboutDialog.cpp
index 13957ed..7f22ece 100755
--- a/src/AboutDialog.cpp
+++ b/src/AboutDialog.cpp
@@ -22,11 +22,11 @@
#include "UiGuiVersion.h"
-#include <tqurl.h>
+#include <tntqurl.h>
#include <tqdesktopservices.h>
-#include <tqscrollbar.h>
-#include <tqtimer.h>
-#include <tqlocale.h>
+#include <tntqscrollbar.h>
+#include <tntqtimer.h>
+#include <tntqlocale.h>
/*!
\class AboutDialog
@@ -37,7 +37,7 @@
\brief The constructor calls the setup function for the ui created by uic and adds
the GPL text to the text edit.
*/
-AboutDialog::AboutDialog(QWidget *parent, Qt::WindowFlags flags) : QDialog(parent, flags)
+AboutDialog::AboutDialog(TQWidget *parent, TQt::WindowFlags flags) : TQDialog(parent, flags)
, _dialogForm(NULL)
, _timer(NULL)
{
@@ -47,7 +47,7 @@ AboutDialog::AboutDialog(QWidget *parent, Qt::WindowFlags flags) : QDialog(paren
_dialogForm->authorTextBrowser->setOpenExternalLinks( true );
_dialogForm->creditsTextBrowser->setOpenExternalLinks( true );
- QString versionString = _dialogForm->versionTextBrowser->toHtml();
+ TQString versionString = _dialogForm->versionTextBrowser->toHtml();
versionString = versionString.arg(PROGRAM_VERSION_STRING).arg( UiGuiVersion::getBuildRevision() ).arg( UiGuiVersion::getBuildDate() );
_dialogForm->versionTextBrowser->setHtml(versionString);
@@ -59,7 +59,7 @@ AboutDialog::AboutDialog(QWidget *parent, Qt::WindowFlags flags) : QDialog(paren
"<p align='center'><a href=\"http://korytskyy.lviv.ua/\"><b>Oleksandr</b></a> for Ukrainian and Russian translation.</p></br>"
"<p align='center'><b>Erwan &quot;leg&quot;</b> for French translation and the icon logo.</p></br>"
"<p align='center'>The <a href=\"http://www.scintilla.org/\"><b>Scintilla</b></a> project for their great text editing component.</p></br>"
- "<p align='center'><a href=\"http://www.riverbankcomputing.co.uk/software/qscintilla/\"><b>Riverbank</b></a> for their Scintilla Qt wrapper QScintilla.</p></br>"
+ "<p align='center'><a href=\"http://www.riverbankcomputing.co.uk/software/qscintilla/\"><b>Riverbank</b></a> for their Scintilla TQt wrapper TQScintilla.</p></br>"
"<p align='center'>The <a href=\"http://astyle.sourceforge.net/\"><b>Artistic Style</b></a> project.</p></br>"
"<p align='center'>The <a href=\"http://invisible-island.net/bcpp/\"><b>BCPP</b></a> project.</p></br>"
"<p align='center'>The <a href=\"http://www.siber.com/sct/tools/cbl-beau.html\"><b>Cobol Beautifier</b></a> project.</p></br>"
@@ -77,7 +77,7 @@ AboutDialog::AboutDialog(QWidget *parent, Qt::WindowFlags flags) : QDialog(paren
"<p align='center'>The <a href=\"http://www.waterproof.fr/products/phpCodeBeautifier/\"><b>phpCB</b></a> project.</p></br>"
"<p align='center'>The <a href=\"http://sourceforge.net/projects/phpstylist/\"><b>PHP Stylist</b></a> project.</p></br>"
"<p align='center'>The <a href=\"http://coverage.livinglogic.de/Tools/scripts/pindent.py.html\"><b>pindent</b></a> project.</p></br>"
- "<p align='center'>The <a href=\"http://psti.equinoxbase.com/\"><b>Pl/Sql tidy</b></a> project.</p></br>"
+ "<p align='center'>The <a href=\"http://psti.etquinoxbase.com/\"><b>Pl/Sql tidy</b></a> project.</p></br>"
"<p align='center'>The <a href=\"http://www.arachnoid.com/ruby/rubyBeautifier.html\"><b>Ruby Beautifier</b></a> project.</p></br>"
"<p align='center'>The <a href=\"http://raa.ruby-lang.org/project/ruby_formatter/\"><b>Ruby Formatter</b></a> project.</p></br>"
"<p align='center'>The <a href=\"http://www.bolthole.com/AWK.html\"><b>Shell Indent</b></a> project.</p></br>"
@@ -93,7 +93,7 @@ AboutDialog::AboutDialog(QWidget *parent, Qt::WindowFlags flags) : QDialog(paren
_scrollDirection = 1;
_scrollSpeed = 100;
- _timer = new QTimer(this);
+ _timer = new TQTimer(this);
connect( _timer, SIGNAL(timeout()), this, SLOT(scroll()) );
connect( this, SIGNAL(accepted()), _timer, SLOT(stop()) );
}
@@ -102,16 +102,16 @@ AboutDialog::AboutDialog(QWidget *parent, Qt::WindowFlags flags) : QDialog(paren
/*!
\brief Catches language change events and retranslates all needed widgets.
*/
-void AboutDialog::changeEvent(QEvent *event) {
- if (event->type() == QEvent::LanguageChange) {
+void AboutDialog::changeEvent(TQEvent *event) {
+ if (event->type() == TQEvent::LanguageChange) {
_dialogForm->retranslateUi(this);
- QString versionString = _dialogForm->versionTextBrowser->toHtml();
+ TQString versionString = _dialogForm->versionTextBrowser->toHtml();
versionString = versionString.arg(PROGRAM_VERSION_STRING).arg( UiGuiVersion::getBuildRevision() ).arg( UiGuiVersion::getBuildDate() );
_dialogForm->versionTextBrowser->setHtml(versionString);
}
else {
- QWidget::changeEvent(event);
+ TQWidget::changeEvent(event);
}
}
@@ -122,7 +122,7 @@ void AboutDialog::changeEvent(QEvent *event) {
int AboutDialog::exec() {
//creditsTextBrowser->verticalScrollBar()->setValue(0);
_timer->start(_scrollSpeed);
- return QDialog::exec();
+ return TQDialog::exec();
}
@@ -131,7 +131,7 @@ int AboutDialog::exec() {
Also changes the scroll direction and speed when reaching the start or end.
*/
void AboutDialog::scroll() {
- QScrollBar *scrollBar = _dialogForm->creditsTextBrowser->verticalScrollBar();
+ TQScrollBar *scrollBar = _dialogForm->creditsTextBrowser->verticalScrollBar();
scrollBar->setValue( scrollBar->value()+_scrollDirection );
if ( scrollBar->value() == scrollBar->maximum() ) {
@@ -158,5 +158,5 @@ void AboutDialog::scroll() {
*/
void AboutDialog::show() {
_timer->start(_scrollSpeed);
- QDialog::show();
+ TQDialog::show();
}