summaryrefslogtreecommitdiffstats
path: root/kstars
diff options
context:
space:
mode:
Diffstat (limited to 'kstars')
-rw-r--r--kstars/kstars/detaildialog.h2
-rw-r--r--kstars/kstars/indielement.cpp2
-rw-r--r--kstars/kstars/indielement.h2
-rw-r--r--kstars/kstars/indigroup.h2
-rw-r--r--kstars/kstars/indiproperty.h6
-rw-r--r--kstars/kstars/main.cpp6
-rw-r--r--kstars/kstars/skymapevents.cpp18
-rw-r--r--kstars/kstars/thumbnaileditor.cpp2
-rw-r--r--kstars/kstars/tools/lcgenerator.cpp4
-rw-r--r--kstars/kstars/tools/modcalcequinox.cpp8
-rw-r--r--kstars/kstars/tools/modcalcplanets.cpp2
-rw-r--r--kstars/kstars/tools/wutdialog.cpp2
12 files changed, 28 insertions, 28 deletions
diff --git a/kstars/kstars/detaildialog.h b/kstars/kstars/detaildialog.h
index 6a22ca1a..1d025c7c 100644
--- a/kstars/kstars/detaildialog.h
+++ b/kstars/kstars/detaildialog.h
@@ -83,7 +83,7 @@ signals:
void clicked();
protected:
- void mousePressEvent( TQMouseEvent *e ) { if ( e->button() == Qt::LeftButton ) emit clicked(); }
+ void mousePressEvent( TQMouseEvent *e ) { if ( e->button() == TQt::LeftButton ) emit clicked(); }
};
/**@class DetailDialog is a window showing detailed information for a selected object.
diff --git a/kstars/kstars/indielement.cpp b/kstars/kstars/indielement.cpp
index e016fa28..83ca370b 100644
--- a/kstars/kstars/indielement.cpp
+++ b/kstars/kstars/indielement.cpp
@@ -287,7 +287,7 @@ void INDI_E::setupElementScale(int length)
int steps = (int) ((max - min) / step);
spin_w = new KDoubleSpinBox(min, max, step, value, 2, pp->pg->propertyContainer );
-slider_w = new TQSlider(0, steps, 1, (int) ((value - min) / step), Qt::Horizontal, pp->pg->propertyContainer );
+slider_w = new TQSlider(0, steps, 1, (int) ((value - min) / step), TQt::Horizontal, pp->pg->propertyContainer );
connect(spin_w, TQT_SIGNAL(valueChanged(double)), this, TQT_SLOT(spinChanged(double )));
connect(slider_w, TQT_SIGNAL(sliderMoved(int)), this, TQT_SLOT(sliderChanged(int )));
diff --git a/kstars/kstars/indielement.h b/kstars/kstars/indielement.h
index 4ac3239f..0bf7c321 100644
--- a/kstars/kstars/indielement.h
+++ b/kstars/kstars/indielement.h
@@ -98,7 +98,7 @@ class INDI_E : public TQObject
PState state; /* control on/off t/f etc */
INDI_P *pp; /* parent property */
- TQHBoxLayout *EHBox; /*Qt::Horizontal layout */
+ TQHBoxLayout *EHBox; /* Horizontal layout */
/* GUI widgets, only malloced when needed */
KSqueezedTextLabel *label_w; // label
diff --git a/kstars/kstars/indigroup.h b/kstars/kstars/indigroup.h
index b68a976d..097e6a10 100644
--- a/kstars/kstars/indigroup.h
+++ b/kstars/kstars/indigroup.h
@@ -35,7 +35,7 @@ class INDI_G
INDI_D *dp; /* Parent device */
TQFrame *propertyContainer; /* Properties container */
TQVBoxLayout *propertyLayout; /* Properties layout */
- TQSpacerItem *VerticalSpacer; /*Qt::Vertical spacer */
+ TQSpacerItem *VerticalSpacer; /* Vertical spacer */
TQPtrList<INDI_P> pl; /* malloced list of pointers to properties */
diff --git a/kstars/kstars/indiproperty.h b/kstars/kstars/indiproperty.h
index 96df51cf..e0fb3f15 100644
--- a/kstars/kstars/indiproperty.h
+++ b/kstars/kstars/indiproperty.h
@@ -57,9 +57,9 @@ class INDI_P : public TQObject
TQLabel *label_w; /* Label widget */
TQPushButton *set_w; /* set button */
- TQSpacerItem *HorSpacer; /*Qt::Horizontal spacer */
- TQHBoxLayout *PHBox; /*Qt::Horizontal container */
- TQVBoxLayout *PVBox; /*Qt::Vertical container */
+ TQSpacerItem *HorSpacer; /* Horizontal spacer */
+ TQHBoxLayout *PHBox; /* Horizontal container */
+ TQVBoxLayout *PVBox; /* Vertical container */
TQButtonGroup *groupB; /* group button for radio and check boxes (Elements) */
KComboBox *om_w; /* Combo box for menu */
diff --git a/kstars/kstars/main.cpp b/kstars/kstars/main.cpp
index 8a516860..c9024d33 100644
--- a/kstars/kstars/main.cpp
+++ b/kstars/kstars/main.cpp
@@ -111,13 +111,13 @@ int main(int argc, char *argv[])
if ( ! datestring.isEmpty() ) {
if ( datestring.contains( "-" ) ) { //assume ISODate format
if ( datestring.contains( ":" ) ) { //also includes time
- kdt = KStarsDateTime::fromString( datestring, Qt::ISODate );
+ kdt = KStarsDateTime::fromString( datestring, TQt::ISODate );
} else { //string probably contains date only
- kdt.setDate( ExtDate::fromString( datestring, Qt::ISODate ) );
+ kdt.setDate( ExtDate::fromString( datestring, TQt::ISODate ) );
kdt.setTime( TQTime( 0, 0, 0 ) );
}
} else { //assume Text format for date string
- kdt = dat->geo()->LTtoUT( KStarsDateTime::fromString( datestring, Qt::TextDate ) );
+ kdt = dat->geo()->LTtoUT( KStarsDateTime::fromString( datestring, TQt::TextDate ) );
}
if ( ! kdt.isValid() ) {
diff --git a/kstars/kstars/skymapevents.cpp b/kstars/kstars/skymapevents.cpp
index 8bc88002..9205ab0e 100644
--- a/kstars/kstars/skymapevents.cpp
+++ b/kstars/kstars/skymapevents.cpp
@@ -629,12 +629,12 @@ void SkyMap::mouseReleaseEvent( TQMouseEvent * ) {
void SkyMap::mousePressEvent( TQMouseEvent *e ) {
//did we Grab an infoBox?
- if ( e->button() == Qt::LeftButton && infoBoxes()->grabBox( e ) ) {
+ if ( e->button() == TQt::LeftButton && infoBoxes()->grabBox( e ) ) {
update(); //refresh without redrawing skymap
return;
}
- if ( (e->state() & ControlButton) && (e->button() == Qt::LeftButton) ) {
+ if ( (e->state() & ControlButton) && (e->button() == TQt::LeftButton) ) {
ZoomRect.moveCenter( e->pos() );
setZoomMouseCursor();
update(); //refresh without redrawing skymap
@@ -649,13 +649,13 @@ void SkyMap::mousePressEvent( TQMouseEvent *e ) {
double dy = ( 0.5*height() - e->y() )/Options::zoomFactor();
if (unusablePoint (dx, dy)) return; // break if point is unusable
- if ( !midMouseButtonDown && e->button() == Qt::MidButton ) {
+ if ( !midMouseButtonDown && e->button() == TQt::MidButton ) {
y0 = 0.5*height() - e->y(); //record y pixel coordinate for middle-button zooming
midMouseButtonDown = true;
}
if ( !mouseButtonDown ) {
- if ( e->button()==Qt::LeftButton ) {
+ if ( e->button()==TQt::LeftButton ) {
mouseButtonDown = true;
scrollCount = 0;
}
@@ -671,11 +671,11 @@ void SkyMap::mousePressEvent( TQMouseEvent *e ) {
if ( clickedObject() ) {
setClickedPoint( clickedObject() );
- if ( e->button() == Qt::RightButton ) {
+ if ( e->button() == TQt::RightButton ) {
clickedObject()->showPopupMenu( pmenu, TQCursor::pos() );
}
- if ( ksw && e->button() == Qt::LeftButton ) {
+ if ( ksw && e->button() == TQt::LeftButton ) {
ksw->statusBar()->changeItem( clickedObject()->translatedLongName(), 0 );
}
} else {
@@ -684,10 +684,10 @@ void SkyMap::mousePressEvent( TQMouseEvent *e ) {
setClickedObject( NULL );
switch (e->button()) {
- case Qt::LeftButton:
+ case TQt::LeftButton:
if ( ksw ) ksw->statusBar()->changeItem( i18n( "Empty sky" ), 0 );
break;
- case Qt::RightButton:
+ case TQt::RightButton:
{
SkyObject *nullObj = new SkyObject( SkyObject::TYPE_UNKNOWN, clickedPoint()->ra()->Hours(), clickedPoint()->dec()->Degrees() );
pmenu->createEmptyMenu( nullObj );
@@ -706,7 +706,7 @@ void SkyMap::mousePressEvent( TQMouseEvent *e ) {
void SkyMap::mouseDoubleClickEvent( TQMouseEvent *e ) {
//Was the event inside an infoBox? If so, shade the box.
- if ( e->button() == Qt::LeftButton ) {
+ if ( e->button() == TQt::LeftButton ) {
if ( infoBoxes()->shadeBox( e ) ) {
update();
return;
diff --git a/kstars/kstars/thumbnaileditor.cpp b/kstars/kstars/thumbnaileditor.cpp
index cfef5bf4..00564495 100644
--- a/kstars/kstars/thumbnaileditor.cpp
+++ b/kstars/kstars/thumbnaileditor.cpp
@@ -130,7 +130,7 @@ void ThumbImage::paintEvent( TQPaintEvent* ) {
}
void ThumbImage::mousePressEvent( TQMouseEvent *e ) {
- if ( e->button() == Qt::LeftButton && CropRect->contains( e->pos() ) ) {
+ if ( e->button() == TQt::LeftButton && CropRect->contains( e->pos() ) ) {
bMouseButtonDown = true;
//The Anchor tells how far from the CropRect corner we clicked
diff --git a/kstars/kstars/tools/lcgenerator.cpp b/kstars/kstars/tools/lcgenerator.cpp
index ff86b542..bafc18ee 100644
--- a/kstars/kstars/tools/lcgenerator.cpp
+++ b/kstars/kstars/tools/lcgenerator.cpp
@@ -68,7 +68,7 @@ void LCGenerator::createGUI()
SDLayout = new TQHBoxLayout( 0, 0, 6, "SDLayout");
StarInfoBox = new TQGroupBox( page, "StarInfoBox" );
- StarInfoBox->setColumnLayout(0, Qt::Vertical );
+ StarInfoBox->setColumnLayout(0, TQt::Vertical );
StarInfoBox->layout()->setSpacing( 6 );
StarInfoBox->layout()->setMargin( 11 );
StarInfoBoxLayout = new TQVBoxLayout( StarInfoBox->layout() );
@@ -124,7 +124,7 @@ void LCGenerator::createGUI()
SDLayout->addWidget( StarInfoBox );
DataSelectBox = new TQGroupBox( page, "DataSelectBox" );
- DataSelectBox->setColumnLayout(0, Qt::Vertical );
+ DataSelectBox->setColumnLayout(0, TQt::Vertical );
DataSelectBox->layout()->setSpacing( 6 );
DataSelectBox->layout()->setMargin( 11 );
DataSelectBoxLayout = new TQVBoxLayout( DataSelectBox->layout() );
diff --git a/kstars/kstars/tools/modcalcequinox.cpp b/kstars/kstars/tools/modcalcequinox.cpp
index 50fbd979..cc78629d 100644
--- a/kstars/kstars/tools/modcalcequinox.cpp
+++ b/kstars/kstars/tools/modcalcequinox.cpp
@@ -212,10 +212,10 @@ void modCalcEquinox::processLines( TQTextStream &istream ) {
KStarsDateTime dta( jdau );
KStarsDateTime dtw( jdwin );
- ostream << dts.toString(Qt::ISODate) << space << (float)(jdsu - jdsp) << space
- << dtu.toString(Qt::ISODate) << space << (float)(jdau - jdsu) << space
- << dta.toString(Qt::ISODate) << space << (float)(jdwin - jdau) << space
- << dtw.toString(Qt::ISODate) << space << (float)(jdsp1 - jdwin) << endl;
+ ostream << dts.toString(TQt::ISODate) << space << (float)(jdsu - jdsp) << space
+ << dtu.toString(TQt::ISODate) << space << (float)(jdau - jdsu) << space
+ << dta.toString(TQt::ISODate) << space << (float)(jdwin - jdau) << space
+ << dtw.toString(TQt::ISODate) << space << (float)(jdsp1 - jdwin) << endl;
}
diff --git a/kstars/kstars/tools/modcalcplanets.cpp b/kstars/kstars/tools/modcalcplanets.cpp
index e1c8b070..fc51282a 100644
--- a/kstars/kstars/tools/modcalcplanets.cpp
+++ b/kstars/kstars/tools/modcalcplanets.cpp
@@ -459,7 +459,7 @@ void modCalcPlanets::processLines( TQTextStream &istream ) {
// Read date and write in ostream if corresponds
if(dateCheckBatch->isChecked() ) {
- dtB = ExtDate::fromString( fields[i], Qt::ISODate );
+ dtB = ExtDate::fromString( fields[i], TQt::ISODate );
if ( !dtB.isValid() ) {
kdWarning() << i18n( "Line %1 contains an invalid date: " ).arg(nline) <<
fields[i] << endl ;
diff --git a/kstars/kstars/tools/wutdialog.cpp b/kstars/kstars/tools/wutdialog.cpp
index 632f6254..f2ed8c7c 100644
--- a/kstars/kstars/tools/wutdialog.cpp
+++ b/kstars/kstars/tools/wutdialog.cpp
@@ -82,7 +82,7 @@ WUTDialog::WUTDialog(KStars *ks) :
if ( ! geo->translatedProvince().isEmpty() ) sGeo += ", " + geo->translatedProvince();
sGeo += ", " + geo->translatedCountry();
WUT->LocationLabel->setText( i18n( "at %1" ).arg( sGeo ) );
- WUT->DateLabel->setText( i18n( "The night of %1" ).arg( Evening.date().toString( Qt::LocalDate ) ) );
+ WUT->DateLabel->setText( i18n( "The night of %1" ).arg( Evening.date().toString( TQt::LocalDate ) ) );
initCategories();