summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/kstarssplash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kstars/kstars/kstarssplash.cpp')
-rw-r--r--kstars/kstars/kstarssplash.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/kstars/kstars/kstarssplash.cpp b/kstars/kstars/kstarssplash.cpp
index 463f38a3..7e57364b 100644
--- a/kstars/kstars/kstarssplash.cpp
+++ b/kstars/kstars/kstarssplash.cpp
@@ -15,9 +15,9 @@
* *
***************************************************************************/
-#include <qfile.h>
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqfile.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
#include <klocale.h>
#include <kapplication.h>
@@ -25,71 +25,71 @@
#include "kstarssplash.h"
#include "ksutils.h"
-KStarsSplash::KStarsSplash( QWidget *parent, const char* name )
+KStarsSplash::KStarsSplash( TQWidget *parent, const char* name )
: KDialogBase( KDialogBase::Plain, i18n( "Loading KStars..." ),
0 /*no buttons*/, Ok, parent, name, false /*not modal*/ ) {
//Set up widgets for splashscreen.
- QFrame *page = plainPage();
- page->setBackgroundColor( QColor( "Black" ) );
- setBackgroundColor( QColor( "Black" ) );
+ TQFrame *page = plainPage();
+ page->setBackgroundColor( TQColor( "Black" ) );
+ setBackgroundColor( TQColor( "Black" ) );
- QVBoxLayout *topLayout = new QVBoxLayout( page, 0, 0 );
+ TQVBoxLayout *topLayout = new TQVBoxLayout( page, 0, 0 );
topLayout->setMargin( 0 );
//Load the KStars banner. Use an empty image if it can't be opened.
- QFile imFile;
+ TQFile imFile;
if ( KSUtils::openDataFile( imFile, "kstars.png" ) ) {
imFile.close(); //Just need the filename...
- splashImage = new QPixmap( imFile.name() );
+ splashImage = new TQPixmap( imFile.name() );
} else {
- splashImage = new QPixmap(); //null image
+ splashImage = new TQPixmap(); //null image
}
- Banner = new QWidget( page );
+ Banner = new TQWidget( page );
Banner->setFixedWidth( splashImage->width() );
Banner->setFixedHeight( splashImage->height() );
topLayout->addWidget( Banner );
//initialize the "Welcome to KStars message label
- label = new QLabel( page, "label1" );
- QPalette pal( label->palette() );
- pal.setColor( QPalette::Normal, QColorGroup::Background, QColor( "Black" ) );
- pal.setColor( QPalette::Inactive, QColorGroup::Background, QColor( "Black" ) );
- pal.setColor( QPalette::Normal, QColorGroup::Foreground, QColor( "White" ) );
- pal.setColor( QPalette::Inactive, QColorGroup::Foreground, QColor( "White" ) );
+ label = new TQLabel( page, "label1" );
+ TQPalette pal( label->palette() );
+ pal.setColor( TQPalette::Normal, TQColorGroup::Background, TQColor( "Black" ) );
+ pal.setColor( TQPalette::Inactive, TQColorGroup::Background, TQColor( "Black" ) );
+ pal.setColor( TQPalette::Normal, TQColorGroup::Foreground, TQColor( "White" ) );
+ pal.setColor( TQPalette::Inactive, TQColorGroup::Foreground, TQColor( "White" ) );
label->setPalette( pal );
label->setAlignment( AlignHCenter );
label->setText( i18n( "Welcome to KStars. Please stand by while loading..." ) );
topLayout->addWidget( label );
//initialize the progress message label
- textCurrentStatus = new QLabel( page, "label2" );
+ textCurrentStatus = new TQLabel( page, "label2" );
textCurrentStatus->setPalette( pal );
textCurrentStatus->setAlignment( AlignHCenter );
topLayout->addWidget( textCurrentStatus );
topLayout->activate();
disableResize();
- setMessage(QString::null); // force repaint of widget with no text
+ setMessage(TQString::null); // force repaint of widget with no text
}
KStarsSplash::~KStarsSplash() {
delete splashImage;
}
-void KStarsSplash::paintEvent( QPaintEvent* ) {
+void KStarsSplash::paintEvent( TQPaintEvent* ) {
bitBlt( Banner, 0, 0, splashImage, 0, 0, -1, -1 );
label->repaint(); // standard text label
textCurrentStatus->repaint(); // status text label
}
-void KStarsSplash::closeEvent( QCloseEvent *e ) {
+void KStarsSplash::closeEvent( TQCloseEvent *e ) {
e->ignore();
emit closeWindow();
}
-void KStarsSplash::setMessage( QString s ) {
+void KStarsSplash::setMessage( TQString s ) {
textCurrentStatus->setText( s );
repaint(); // repaint splash screen
/**