summaryrefslogtreecommitdiffstats
path: root/arts/kde
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:13:01 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:13:01 -0600
commitdeac2ca49faed824fe83066080714eb6d653615b (patch)
tree8b5bf97c5acaaf5285985b87fa76dbea0f35e4fa /arts/kde
parent0c9d97065a3d6ceb12d687555a1a33d90db96238 (diff)
downloadtdelibs-deac2ca49faed824fe83066080714eb6d653615b.tar.gz
tdelibs-deac2ca49faed824fe83066080714eb6d653615b.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'arts/kde')
-rw-r--r--arts/kde/kvideowidget.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/arts/kde/kvideowidget.cpp b/arts/kde/kvideowidget.cpp
index bc17f32d8..a4307dbbf 100644
--- a/arts/kde/kvideowidget.cpp
+++ b/arts/kde/kvideowidget.cpp
@@ -101,22 +101,22 @@ void KVideoWidget::init(void)
videoHeight = 0;
// Setup actions
- new KToggleAction( i18n("Fullscreen &Mode"), "window_fullscreen",
+ new TDEToggleAction( i18n("Fullscreen &Mode"), "window_fullscreen",
CTRL+SHIFT+Key_F, TQT_TQOBJECT(this), TQT_SLOT(fullscreenActivated()),
actionCollection(), "fullscreen_mode" );
- new KRadioAction( i18n("&Half Size"), ALT+Key_0,
+ new TDERadioAction( i18n("&Half Size"), ALT+Key_0,
TQT_TQOBJECT(this), TQT_SLOT(halfSizeActivated()),
actionCollection(), "half_size" );
- new KRadioAction( i18n("&Normal Size"), ALT+Key_1,
+ new TDERadioAction( i18n("&Normal Size"), ALT+Key_1,
TQT_TQOBJECT(this), TQT_SLOT(normalSizeActivated()),
actionCollection(), "normal_size" );
- new KRadioAction( i18n("&Double Size"), ALT+Key_2,
+ new TDERadioAction( i18n("&Double Size"), ALT+Key_2,
TQT_TQOBJECT(this), TQT_SLOT(doubleSizeActivated()),
actionCollection(), "double_size" );
- ((KToggleAction *)action( "half_size" ))->setExclusiveGroup( "KVideoWidget::zoom" );
- ((KToggleAction *)action( "normal_size" ))->setExclusiveGroup( "KVideoWidget::zoom" );
- ((KToggleAction *)action( "double_size" ))->setExclusiveGroup( "KVideoWidget::zoom" );
+ ((TDEToggleAction *)action( "half_size" ))->setExclusiveGroup( "KVideoWidget::zoom" );
+ ((TDEToggleAction *)action( "normal_size" ))->setExclusiveGroup( "KVideoWidget::zoom" );
+ ((TDEToggleAction *)action( "double_size" ))->setExclusiveGroup( "KVideoWidget::zoom" );
action("double_size")->setEnabled(false);
action("half_size")->setEnabled(false);
@@ -232,29 +232,29 @@ bool KVideoWidget::isEmbedded()
bool KVideoWidget::isFullscreen()
{
- return ((KToggleAction *)action( "fullscreen_mode" ))->isChecked();
+ return ((TDEToggleAction *)action( "fullscreen_mode" ))->isChecked();
}
bool KVideoWidget::isHalfSize()
{
- return ((KToggleAction *)action( "half_size" ))->isChecked();
+ return ((TDEToggleAction *)action( "half_size" ))->isChecked();
}
bool KVideoWidget::isNormalSize()
{
- return ((KToggleAction *)action( "normal_size" ))->isChecked();
+ return ((TDEToggleAction *)action( "normal_size" ))->isChecked();
}
bool KVideoWidget::isDoubleSize()
{
- return ((KToggleAction *)action( "double_size" ))->isChecked();
+ return ((TDEToggleAction *)action( "double_size" ))->isChecked();
}
void KVideoWidget::setFullscreen()
{
if (!isFullscreen())
{
- ((KToggleAction *)action( "fullscreen_mode" ))->setChecked( true );
+ ((TDEToggleAction *)action( "fullscreen_mode" ))->setChecked( true );
fullscreenActivated();
}
}
@@ -263,26 +263,26 @@ void KVideoWidget::setWindowed()
{
if (isFullscreen())
{
- ((KToggleAction *)action( "fullscreen_mode" ))->setChecked( false );
+ ((TDEToggleAction *)action( "fullscreen_mode" ))->setChecked( false );
fullscreenActivated();
}
}
void KVideoWidget::setHalfSize()
{
- ((KToggleAction *)action( "half_size" ))->setChecked( true );
+ ((TDEToggleAction *)action( "half_size" ))->setChecked( true );
halfSizeActivated();
}
void KVideoWidget::setNormalSize()
{
- ((KToggleAction *)action( "normal_size" ))->setChecked( true );
+ ((TDEToggleAction *)action( "normal_size" ))->setChecked( true );
normalSizeActivated();
}
void KVideoWidget::setDoubleSize()
{
- ((KToggleAction *)action( "double_size" ))->setChecked( true );
+ ((TDEToggleAction *)action( "double_size" ))->setChecked( true );
doubleSizeActivated();
}
@@ -323,18 +323,18 @@ void KVideoWidget::resizeEvent( TQResizeEvent *event )
{
if (width() == QMAX( (videoWidth / 2), minimumWidth() ) &&
height() == QMAX( (videoHeight / 2), minimumHeight() ))
- ((KToggleAction *)action( "half_size" ))->setChecked( true );
+ ((TDEToggleAction *)action( "half_size" ))->setChecked( true );
else if (width() == QMAX( videoWidth, minimumWidth() ) &&
height() == QMAX( videoHeight, minimumHeight() ))
- ((KToggleAction *)action( "normal_size" ))->setChecked( true );
+ ((TDEToggleAction *)action( "normal_size" ))->setChecked( true );
else if (width() == QMAX( (2 * videoWidth), minimumWidth() ) &&
height() == QMAX( (2 * videoHeight), minimumHeight() ))
- ((KToggleAction *)action( "double_size" ))->setChecked( true );
+ ((TDEToggleAction *)action( "double_size" ))->setChecked( true );
else
{
- ((KToggleAction *)action( "half_size" ))->setChecked( false );
- ((KToggleAction *)action( "normal_size" ))->setChecked( false );
- ((KToggleAction *)action( "double_size" ))->setChecked( false );
+ ((TDEToggleAction *)action( "half_size" ))->setChecked( false );
+ ((TDEToggleAction *)action( "normal_size" ))->setChecked( false );
+ ((TDEToggleAction *)action( "double_size" ))->setChecked( false );
}
}
}