summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/kplayerslideraction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'umbrello/umbrello/kplayerslideraction.cpp')
-rw-r--r--umbrello/umbrello/kplayerslideraction.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/umbrello/umbrello/kplayerslideraction.cpp b/umbrello/umbrello/kplayerslideraction.cpp
index 767aae23..9df37596 100644
--- a/umbrello/umbrello/kplayerslideraction.cpp
+++ b/umbrello/umbrello/kplayerslideraction.cpp
@@ -73,7 +73,7 @@ KPlayerPopupSliderAction::KPlayerPopupSliderAction (const TQString& text,
m_frame = new KPlayerPopupFrame;
m_frame -> setFrameStyle (TQFrame::PopupPanel | TQFrame::Raised);
m_frame -> setLineWidth (2);
- m_slider = new KPlayerSlider (Qt::Vertical, m_frame);
+ m_slider = new KPlayerSlider (TQt::Vertical, m_frame);
m_frame -> resize (36, m_slider -> sizeHint().height() + 4);
m_slider -> setGeometry (m_frame -> contentsRect());
//CHANGED kdDebug() << "Popup slider size " << m_slider -> width() << "x" << m_slider -> height() << "\n";
@@ -159,7 +159,7 @@ void KPlayerPopupSliderAction::slotActivated (void)
KPlayerSliderAction::KPlayerSliderAction (const TQString& text, const TDEShortcut& cut,
const TQObject* receiver, const char* slot, TDEActionCollection* parent, const char* name)
- : KWidgetAction (new KPlayerSlider (Qt::Horizontal, 0, name), text, cut, receiver, slot, parent, name)
+ : KWidgetAction (new KPlayerSlider (TQt::Horizontal, 0, name), text, cut, receiver, slot, parent, name)
//: TDEAction (text, 0, parent, name)
{
setAutoSized (true);
@@ -187,7 +187,7 @@ int KPlayerSliderAction::plug (TQWidget* widget, int index)
return result;
TDEToolBar* toolbar = (TDEToolBar*) widget;
//int id = getToolButtonID();
- //kdDebug() << "Qt::Orientation: " << toolbar -> orientation() << "\n";
+ //kdDebug() << "TQt::Orientation: " << toolbar -> orientation() << "\n";
//m_slider -> reparent (toolbar, TQPoint());
//toolbar -> insertWidget (id, 0, m_slider, index);
//toolbar -> setItemAutoSized (id, true);
@@ -199,7 +199,7 @@ int KPlayerSliderAction::plug (TQWidget* widget, int index)
//addContainer (toolbar, id);
//setupToolbar (toolbar -> orientation(), toolbar);
orientationChanged (toolbar -> orientation());
- connect (toolbar, TQT_SIGNAL (orientationChanged (Qt::Orientation)), this, TQT_SLOT (orientationChanged (Qt::Orientation)));
+ connect (toolbar, TQT_SIGNAL (orientationChanged (TQt::Orientation)), this, TQT_SLOT (orientationChanged (TQt::Orientation)));
//connect (toolbar, TQT_SIGNAL (destroyed()), this, TQT_SLOT (toolbarDestroyed()));
//if ( parentCollection() )
// parentCollection() -> connectHighlight (toolbar, this);
@@ -216,7 +216,7 @@ void KPlayerSliderAction::unplug (TQWidget* widget)
if ( ! slider() || ! isPlugged() || widget != slider() -> parent() )
return;
//TDEToolBar* toolbar = (TDEToolBar*) widget;
- disconnect (widget, TQT_SIGNAL (orientationChanged (Qt::Orientation)), this, TQT_SLOT (orientationChanged (Qt::Orientation)));
+ disconnect (widget, TQT_SIGNAL (orientationChanged (TQt::Orientation)), this, TQT_SLOT (orientationChanged (TQt::Orientation)));
//disconnect (toolbar, TQT_SIGNAL (destroyed()), this, TQT_SLOT (toolbarDestroyed()));
//m_slider -> reparent (0, TQPoint());
/*int index = findContainer (toolbar);
@@ -226,9 +226,9 @@ void KPlayerSliderAction::unplug (TQWidget* widget)
removeContainer (index);*/
}
-/*void KPlayerSliderAction::setupToolbar (Qt::Orientation orientation, TDEToolBar* toolbar)
+/*void KPlayerSliderAction::setupToolbar (TQt::Orientation orientation, TDEToolBar* toolbar)
{
- if ( orientation == Qt::Horizontal )
+ if ( orientation == TQt::Horizontal )
{
// toolbar -> setMinimumWidth (300);
// toolbar -> setMinimumHeight (0);
@@ -248,7 +248,7 @@ void KPlayerSliderAction::unplug (TQWidget* widget)
}
}*/
-void KPlayerSliderAction::orientationChanged (Qt::Orientation orientation)
+void KPlayerSliderAction::orientationChanged (TQt::Orientation orientation)
{
//if ( sender() && sender() -> inherits ("TDEToolBar") )
// setupToolbar (orientation, (TDEToolBar*) sender());
@@ -264,7 +264,7 @@ void KPlayerSliderAction::orientationChanged (Qt::Orientation orientation)
m_slider -> reparent (0, TQPoint());
}*/
-KPlayerSlider::KPlayerSlider (Qt::Orientation orientation, TQWidget* parent, const char* name)
+KPlayerSlider::KPlayerSlider (TQt::Orientation orientation, TQWidget* parent, const char* name)
//CHANGED : TQSlider (orientation, parent, name)
: TQSlider (300, 2200, 400, 1000, orientation, parent, name)
{
@@ -283,7 +283,7 @@ TQSize KPlayerSlider::sizeHint() const
TQSize hint = TQSlider::sizeHint();
//CHANGED int length = kPlayerSettings() -> preferredSliderLength();
int length = 200;
- if ( orientation() == Qt::Horizontal )
+ if ( orientation() == TQt::Horizontal )
{
if ( hint.width() < length )
hint.setWidth (length);
@@ -302,7 +302,7 @@ TQSize KPlayerSlider::minimumSizeHint() const
TQSize hint = TQSlider::minimumSizeHint();
//CHANGED int length = kPlayerSettings() -> minimumSliderLength();
int length = 200;
- if ( orientation() == Qt::Horizontal )
+ if ( orientation() == TQt::Horizontal )
{
if ( hint.width() < length )
hint.setWidth (length);
@@ -315,7 +315,7 @@ TQSize KPlayerSlider::minimumSizeHint() const
return hint;
}
-void KPlayerSlider::setOrientation (Qt::Orientation o)
+void KPlayerSlider::setOrientation (TQt::Orientation o)
{
if ( o == orientation() )
return;
@@ -332,14 +332,14 @@ void KPlayerSlider::setOrientation (Qt::Orientation o)
int KPlayerSlider::minValue (void) const
{
- if ( orientation() == Qt::Horizontal )
+ if ( orientation() == TQt::Horizontal )
return TQSlider::minValue();
return - TQSlider::maxValue();
}
void KPlayerSlider::setMinValue (int minValue)
{
- if ( orientation() == Qt::Horizontal )
+ if ( orientation() == TQt::Horizontal )
TQSlider::setMinValue (minValue);
else
TQSlider::setMaxValue (- minValue);
@@ -347,14 +347,14 @@ void KPlayerSlider::setMinValue (int minValue)
int KPlayerSlider::maxValue (void) const
{
- if ( orientation() == Qt::Horizontal )
+ if ( orientation() == TQt::Horizontal )
return TQSlider::maxValue();
return - TQSlider::minValue();
}
void KPlayerSlider::setMaxValue (int maxValue)
{
- if ( orientation() == Qt::Horizontal )
+ if ( orientation() == TQt::Horizontal )
TQSlider::setMaxValue (maxValue);
else
TQSlider::setMinValue (- maxValue);
@@ -383,14 +383,14 @@ void KPlayerSlider::setPageStep (int pageStep)
int KPlayerSlider::value (void) const
{
- if ( orientation() == Qt::Horizontal )
+ if ( orientation() == TQt::Horizontal )
return TQSlider::value();
return - TQSlider::value();
}
void KPlayerSlider::setValue (int value, int)
{
- if ( orientation() == Qt::Horizontal )
+ if ( orientation() == TQt::Horizontal )
TQSlider::setValue (value);
else
TQSlider::setValue (- value);