summaryrefslogtreecommitdiffstats
path: root/noatun/modules/simple/userinterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'noatun/modules/simple/userinterface.cpp')
-rw-r--r--noatun/modules/simple/userinterface.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/noatun/modules/simple/userinterface.cpp b/noatun/modules/simple/userinterface.cpp
index 685b2467..591335f9 100644
--- a/noatun/modules/simple/userinterface.cpp
+++ b/noatun/modules/simple/userinterface.cpp
@@ -74,7 +74,7 @@ SimpleUI::SimpleUI()
napp->player()->handleButtons();
- resize( minimumSize() );
+ resize( tqminimumSize() );
// Show UI and calculate video widget frame
show();
@@ -126,10 +126,10 @@ SimpleUI::~SimpleUI()
void SimpleUI::setupActions()
{
- KStdAction::open( napp, TQT_SLOT(fileOpen()), actionCollection(), "_file_open" );
- new KAction( i18n("&Properties"), 0, propertiesDialog, TQT_SLOT(show()),
+ KStdAction::open( TQT_TQOBJECT(napp), TQT_SLOT(fileOpen()), actionCollection(), "_file_open" );
+ new KAction( i18n("&Properties"), 0, TQT_TQOBJECT(propertiesDialog), TQT_SLOT(show()),
actionCollection(), "_file_properties" );
- KStdAction::quit( napp, TQT_SLOT(quit()), actionCollection(), "_file_quit");
+ KStdAction::quit( TQT_TQOBJECT(napp), TQT_SLOT(quit()), actionCollection(), "_file_quit");
NoatunStdAction::playlist( actionCollection(), "view_playlist" );
actionCollection()->insert(video->action( "half_size" ));
@@ -139,14 +139,14 @@ void SimpleUI::setupActions()
actionCollection()->insert(napp->pluginActionMenu());
- menubarAction = KStdAction::showMenubar(this, TQT_SLOT(showMenubar()),
+ menubarAction = KStdAction::showMenubar(TQT_TQOBJECT(this), TQT_SLOT(showMenubar()),
actionCollection());
- statusbarAction = KStdAction::showStatusbar(this, TQT_SLOT(showStatusbar()),
+ statusbarAction = KStdAction::showStatusbar(TQT_TQOBJECT(this), TQT_SLOT(showStatusbar()),
actionCollection());
NoatunStdAction::effects( actionCollection(), "effects" );
NoatunStdAction::equalizer( actionCollection(), "equalizer" );
NoatunStdAction::loop( actionCollection(), "loop_style" );
- KStdAction::preferences( napp, TQT_SLOT(preferences()), actionCollection() );
+ KStdAction::preferences( TQT_TQOBJECT(napp), TQT_SLOT(preferences()), actionCollection() );
}
void SimpleUI::showMenubar()
@@ -173,7 +173,7 @@ void SimpleUI::setupCentralWidget()
npWidget->setSpacing( 0 );
positionLabel = new TQLabel( statusBar() );
- positionLabel->setAlignment( AlignVCenter | AlignCenter );
+ positionLabel->tqsetAlignment( AlignVCenter | AlignCenter );
positionLabel->setFixedSize( fontMetrics().size( 0, " 00:00/00:00 " ) );
statusBar()->addWidget( positionLabel, 0, true );
@@ -214,7 +214,7 @@ void SimpleUI::setupCentralWidget()
TQToolTip::add( forwButton, i18n("Forward") );
connect( forwButton, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(forward()) );
- slider = new L33tSlider( 0, 1000, 10, 0, L33tSlider::Horizontal, ctlFrame );
+ slider = new L33tSlider( 0, 1000, 10, 0, Qt::Horizontal, ctlFrame );
slider->setFixedHeight( 24 );
slider->setMinimumWidth( 100 );
slider->setTickmarks( TQSlider::NoMarks );
@@ -238,15 +238,15 @@ void SimpleUI::setupCentralWidget()
volumeLabel = new TQLabel( volumeFrame );
volumeLabel->setText( "100%" );
- volumeLabel->setAlignment( AlignCenter );
- volumeLabel->setFixedSize( volumeLabel->sizeHint() );
+ volumeLabel->tqsetAlignment( AlignCenter );
+ volumeLabel->setFixedSize( volumeLabel->tqsizeHint() );
TQHBox *volumeSubFrame = new TQHBox( volumeFrame );
- volumeSlider = new L33tSlider( 0, 100, 10, 0, Vertical, volumeSubFrame );
+ volumeSlider = new L33tSlider( 0, 100, 10, 0,Qt::Vertical, volumeSubFrame );
volumeSlider->setValue( 100 - napp->player()->volume() );
- volumeSlider->setFixedSize( volumeSlider->sizeHint() );
+ volumeSlider->setFixedSize( volumeSlider->tqsizeHint() );
- volumeFrame->resize( volumeFrame->sizeHint() );
+ volumeFrame->resize( volumeFrame->tqsizeHint() );
connect( volumeSlider, TQT_SIGNAL(sliderMoved(int)), TQT_SLOT(slotVolumeSliderMoved(int)) );
connect( volumeSlider, TQT_SIGNAL(userChanged(int)), TQT_SLOT(slotVolumeSliderMoved(int)) );
@@ -254,7 +254,7 @@ void SimpleUI::setupCentralWidget()
setCentralWidget( npWidget );
- video->setMinimumSize( minimumSizeHint().width(), 1 );
+ video->setMinimumSize( tqminimumSizeHint().width(), 1 );
// Create properties dialog
propertiesDialog = new PropertiesDialog( this );