summaryrefslogtreecommitdiffstats
path: root/style
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-03-31 16:13:43 +0200
committerSlávek Banko <slavek.banko@axis.cz>2019-03-31 16:13:43 +0200
commit283aebe0015ee5527dc322dde90237922b351109 (patch)
treeadc0dff368389524483182f9bc36e145febed28f /style
parente7c75e712197761e6b8ac4ab59b88ef9a1896eae (diff)
downloadtde-style-lipstik-283aebe0015ee5527dc322dde90237922b351109.tar.gz
tde-style-lipstik-283aebe0015ee5527dc322dde90237922b351109.zip
Added controlled conversions to char* instead of automatic ascii conversions.
The definition of -UTQT_NO_ASCII_CAST is no longer needed. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'style')
-rw-r--r--style/config/lipstikconf.cpp26
-rw-r--r--style/lipstik.cpp6
2 files changed, 16 insertions, 16 deletions
diff --git a/style/config/lipstikconf.cpp b/style/config/lipstikconf.cpp
index 3646421..16c993d 100644
--- a/style/config/lipstikconf.cpp
+++ b/style/config/lipstikconf.cpp
@@ -130,7 +130,7 @@ LipstikStyleConfig::LipstikStyleConfig(TQWidget* parent): TQWidget(parent)
scrollBarStyleLabel = new TQLabel(scrollGrp);
scrollBarStyleLabel->setText(i18n("Scrollbar style : "));
- scrollBarStyle = new TQComboBox(i18n("Scrollbar style"), scrollGrp);
+ scrollBarStyle = new TQComboBox(i18n("Scrollbar style").utf8(), scrollGrp);
scrollBarStyle->setEditable(false);
scrollBarStyle->insertItem("Windows style");
scrollBarStyle->insertItem("Platinum style");
@@ -139,7 +139,7 @@ LipstikStyleConfig::LipstikStyleConfig(TQWidget* parent): TQWidget(parent)
scrollBarWidthLabel = new TQLabel(scrollGrp);
scrollBarWidthLabel->setText(i18n("Scrollbar width : "));
- scrollBarWidth = new TQComboBox(i18n("Scrollbar width"), scrollGrp);
+ scrollBarWidth = new TQComboBox(i18n("Scrollbar width").utf8(), scrollGrp);
scrollBarWidth->setEditable(false);
scrollBarWidth->insertItem("Small");
scrollBarWidth->insertItem("Normal");
@@ -147,7 +147,7 @@ LipstikStyleConfig::LipstikStyleConfig(TQWidget* parent): TQWidget(parent)
sliderStyleLabel = new TQLabel(scrollGrp);
sliderStyleLabel->setText(i18n("Slider handle size : "));
- sliderStyle = new TQComboBox(i18n("Slider handle size"), scrollGrp);
+ sliderStyle = new TQComboBox(i18n("Slider handle size").utf8(), scrollGrp);
sliderStyle->setEditable(false);
sliderStyle->insertItem("Small");
sliderStyle->insertItem("Medium");
@@ -695,13 +695,13 @@ TQString LipstikStyleConfig::scrollBarType( int listnr )
int LipstikStyleConfig::scrollBarItem( TQString kSBType )
{
- if( !strcmp(kSBType,"WindowsStyleScrollBar") )
+ if( !strcmp(kSBType.latin1(), "WindowsStyleScrollBar") )
return 0;
- else if( !strcmp(kSBType,"PlatinumStyleScrollBar") )
+ else if( !strcmp(kSBType.latin1(), "PlatinumStyleScrollBar") )
return 1;
- else if( !strcmp(kSBType,"ThreeButtonScrollBar") )
+ else if( !strcmp(kSBType.latin1(), "ThreeButtonScrollBar") )
return 2;
- else if( !strcmp(kSBType,"NextStyleScrollBar") )
+ else if( !strcmp(kSBType.latin1(), "NextStyleScrollBar") )
return 3;
else
return 1;
@@ -724,11 +724,11 @@ TQString LipstikStyleConfig::scrollBarWidthType( int widthListnr )
int LipstikStyleConfig::scrollBarWidthItem( TQString kSBWidthType )
{
- if( !strcmp(kSBWidthType,"Small") )
+ if( !strcmp(kSBWidthType.latin1(), "Small") )
return 0;
- else if( !strcmp(kSBWidthType,"Normal") )
+ else if( !strcmp(kSBWidthType.latin1(), "Normal") )
return 1;
- else if( !strcmp(kSBWidthType,"Large") )
+ else if( !strcmp(kSBWidthType.latin1(), "Large") )
return 2;
else
return 0;
@@ -737,11 +737,11 @@ int LipstikStyleConfig::scrollBarWidthItem( TQString kSBWidthType )
//Slider types
int LipstikStyleConfig::sliderItem( TQString kSliderType )
{
- if( !strcmp(kSliderType,"sliderPlastikStyle") )
+ if( !strcmp(kSliderType.latin1(), "sliderPlastikStyle") )
return 0;
- else if( !strcmp(kSliderType,"sliderLipstikStyle") )
+ else if( !strcmp(kSliderType.latin1(), "sliderLipstikStyle") )
return 1;
- else if( !strcmp(kSliderType,"sliderGtkStyle") )
+ else if( !strcmp(kSliderType.latin1(), "sliderGtkStyle") )
return 2;
else
return 2;
diff --git a/style/lipstik.cpp b/style/lipstik.cpp
index d254735..e1a494a 100644
--- a/style/lipstik.cpp
+++ b/style/lipstik.cpp
@@ -220,11 +220,11 @@ LipstikStyle::LipstikStyle() : TDEStyle( AllowMenuTransparency, ThreeButtonScrol
settings.endGroup();
- if( !strcmp(_scrollBarStyle,"WindowsStyleScrollBar" ) )
+ if( !strcmp(_scrollBarStyle.latin1(), "WindowsStyleScrollBar" ) )
this->setScrollBarType(TDEStyle::WindowsStyleScrollBar);
- else if( !strcmp(_scrollBarStyle,"PlatinumStyleScrollBar" ) )
+ else if( !strcmp(_scrollBarStyle.latin1(), "PlatinumStyleScrollBar" ) )
this->setScrollBarType(TDEStyle::PlatinumStyleScrollBar);
- else if( !strcmp(_scrollBarStyle,"NextStyleScrollBar" ) )
+ else if( !strcmp(_scrollBarStyle.latin1(), "NextStyleScrollBar" ) )
this->setScrollBarType(TDEStyle::NextStyleScrollBar);
// setup pixmap cache...