summaryrefslogtreecommitdiffstats
path: root/kmix/viewapplet.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2022-04-16 21:53:46 +0300
committerMavridis Philippe <mavridisf@gmail.com>2023-06-22 18:11:18 +0300
commit14e1211f5c139b98d424ec039a5e92648e0a5990 (patch)
tree54a63dac6a5508912933592aec9a90b2289c34e1 /kmix/viewapplet.cpp
parent5d08ceabaf19206134b1bcd08c8642cdb0b41aa7 (diff)
downloadtdemultimedia-14e1211f5c139b98d424ec039a5e92648e0a5990.tar.gz
tdemultimedia-14e1211f5c139b98d424ec039a5e92648e0a5990.zip
KMix: ported settings to TDEConfigXT/Designer
This commit includes an improved Preferences dialog for KMix. It also exposes some previously hidden options and features, some of which experimental (build-time option, off by default). It also includes some minor UI improvements. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com> (cherry picked from commit 2cc6752c15371d87a0c8cf774515b0b44fc768d9)
Diffstat (limited to 'kmix/viewapplet.cpp')
-rw-r--r--kmix/viewapplet.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kmix/viewapplet.cpp b/kmix/viewapplet.cpp
index 87020b95..4bebfdbc 100644
--- a/kmix/viewapplet.cpp
+++ b/kmix/viewapplet.cpp
@@ -47,14 +47,14 @@ ViewApplet::ViewApplet(TQWidget* parent, const char* name, Mixer* mixer, ViewBas
if ( position == KPanelApplet::pLeft || position == KPanelApplet::pRight ) {
//kdDebug(67100) << "ViewApplet() isVertical" << "\n";
- _viewOrientation = Qt::Vertical;
+ _viewOrientation = TQt::Vertical;
}
else {
//kdDebug(67100) << "ViewApplet() isHorizontal" << "\n";
- _viewOrientation = Qt::Horizontal;
+ _viewOrientation = TQt::Horizontal;
}
- if ( _viewOrientation == Qt::Horizontal ) {
+ if ( _viewOrientation == TQt::Horizontal ) {
_layoutMDW = new TQHBoxLayout( this );
setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Preferred);
}
@@ -104,11 +104,11 @@ TQWidget* ViewApplet::add(MixDevice *md)
Slider orientation is exactly the other way round. If the applet stretches horzontally,
the sliders must be vertical
*/
- Qt::Orientation sliderOrientation;
- if (_viewOrientation == Qt::Horizontal )
- sliderOrientation = Qt::Vertical;
+ TQt::Orientation sliderOrientation;
+ if (_viewOrientation == TQt::Horizontal )
+ sliderOrientation = TQt::Vertical;
else
- sliderOrientation = Qt::Horizontal;
+ sliderOrientation = TQt::Horizontal;
// kdDebug(67100) << "ViewApplet::add()\n";
MixDeviceWidget *mdw =
@@ -147,7 +147,7 @@ TQSize ViewApplet::sizeHint() const {
}
TQSizePolicy ViewApplet::sizePolicy() const {
- if ( _viewOrientation == Qt::Horizontal ) {
+ if ( _viewOrientation == TQt::Horizontal ) {
//kdDebug(67100) << "ViewApplet::sizePolicy=(Fixed,Expanding)\n";
return TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Expanding);
}
@@ -159,7 +159,7 @@ TQSizePolicy ViewApplet::sizePolicy() const {
bool ViewApplet::shouldShowIcons(TQSize qsz) {
bool showIcons = false;
- if ( _viewOrientation == Qt::Horizontal ) {
+ if ( _viewOrientation == TQt::Horizontal ) {
if ( qsz.height() >= 32 ) {
//kdDebug(67100) << "ViewApplet::resizeEvent() hor >=32" << qre->size() << "\n";
showIcons = true;