Commit 18693e2c authored by Robert Knight's avatar Robert Knight

Add UI control to turn anti-aliasing on or off. 'Smooth fonts' checkbox added...

Add UI control to turn anti-aliasing on or off.  'Smooth fonts' checkbox added to Appearence tab of profile editor.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=781732
parent d28929b8
...@@ -420,6 +420,16 @@ void EditProfileDialog::setupAppearancePage(const Profile* info) ...@@ -420,6 +420,16 @@ void EditProfileDialog::setupAppearancePage(const Profile* info)
SLOT(setFontSize(int)) ); SLOT(setFontSize(int)) );
connect( _ui->editFontButton , SIGNAL(clicked()) , this , connect( _ui->editFontButton , SIGNAL(clicked()) , this ,
SLOT(showFontDialog()) ); SLOT(showFontDialog()) );
// setup font smoothing
_ui->antialiasTextButton->setChecked(info->property<bool>(Profile::AntiAliasFonts));
connect( _ui->antialiasTextButton , SIGNAL(toggled(bool)) , this ,
SLOT(setAntialiasText(bool)) );
}
void EditProfileDialog::setAntialiasText(bool enable)
{
_tempProfile->setProperty(Profile::AntiAliasFonts,enable);
preview(Profile::AntiAliasFonts,enable);
} }
void EditProfileDialog::colorSchemeAnimationUpdate() void EditProfileDialog::colorSchemeAnimationUpdate()
{ {
......
...@@ -122,6 +122,7 @@ private slots: ...@@ -122,6 +122,7 @@ private slots:
// appearance page // appearance page
void setFontSize(int pointSize); void setFontSize(int pointSize);
void setAntialiasText(bool enable);
void showFontDialog(); void showFontDialog();
void newColorScheme(); void newColorScheme();
void editColorScheme(); void editColorScheme();
......
...@@ -6,20 +6,11 @@ ...@@ -6,20 +6,11 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>441</width> <width>441</width>
<height>485</height> <height>499</height>
</rect> </rect>
</property> </property>
<layout class="QHBoxLayout" > <layout class="QHBoxLayout" >
<property name="leftMargin" > <property name="margin" >
<number>0</number>
</property>
<property name="topMargin" >
<number>0</number>
</property>
<property name="rightMargin" >
<number>0</number>
</property>
<property name="bottomMargin" >
<number>0</number> <number>0</number>
</property> </property>
<item> <item>
...@@ -34,9 +25,17 @@ ...@@ -34,9 +25,17 @@
<number>0</number> <number>0</number>
</property> </property>
<property name="usesScrollButtons" > <property name="usesScrollButtons" >
<bool>false</bool> <bool>true</bool>
</property> </property>
<widget class="QWidget" name="generalTab" > <widget class="QWidget" name="generalTab" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>437</width>
<height>472</height>
</rect>
</property>
<attribute name="title" > <attribute name="title" >
<string>General</string> <string>General</string>
</attribute> </attribute>
...@@ -160,7 +159,7 @@ ...@@ -160,7 +159,7 @@
<property name="orientation" > <property name="orientation" >
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeHint" > <property name="sizeHint" stdset="0" >
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
...@@ -224,7 +223,7 @@ ...@@ -224,7 +223,7 @@
<property name="orientation" > <property name="orientation" >
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
</property> </property>
<property name="sizeHint" > <property name="sizeHint" stdset="0" >
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
...@@ -235,6 +234,14 @@ ...@@ -235,6 +234,14 @@
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="tabsTab" > <widget class="QWidget" name="tabsTab" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>437</width>
<height>472</height>
</rect>
</property>
<attribute name="title" > <attribute name="title" >
<string>Tabs</string> <string>Tabs</string>
</attribute> </attribute>
...@@ -359,7 +366,7 @@ ...@@ -359,7 +366,7 @@
<property name="orientation" > <property name="orientation" >
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
</property> </property>
<property name="sizeHint" > <property name="sizeHint" stdset="0" >
<size> <size>
<width>20</width> <width>20</width>
<height>10</height> <height>10</height>
...@@ -370,6 +377,14 @@ ...@@ -370,6 +377,14 @@
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="appearanceTab" > <widget class="QWidget" name="appearanceTab" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>437</width>
<height>472</height>
</rect>
</property>
<attribute name="title" > <attribute name="title" >
<string>Appearance</string> <string>Appearance</string>
</attribute> </attribute>
...@@ -431,7 +446,7 @@ ...@@ -431,7 +446,7 @@
<property name="orientation" > <property name="orientation" >
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
</property> </property>
<property name="sizeHint" > <property name="sizeHint" stdset="0" >
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
...@@ -445,25 +460,16 @@ ...@@ -445,25 +460,16 @@
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="styleSheet" > <property name="styleSheet" >
<string>* { background-color: #FFCCCC ; border-radius: 3px }</string> <string notr="true" >* { background-color: #FFCCCC ; border-radius: 3px }</string>
</property> </property>
<layout class="QHBoxLayout" > <layout class="QHBoxLayout" >
<property name="leftMargin" > <property name="margin" >
<number>4</number>
</property>
<property name="topMargin" >
<number>4</number>
</property>
<property name="rightMargin" >
<number>4</number>
</property>
<property name="bottomMargin" >
<number>4</number> <number>4</number>
</property> </property>
<item> <item>
<widget class="QLabel" name="transparencyWarningIcon" > <widget class="QLabel" name="transparencyWarningIcon" >
<property name="styleSheet" > <property name="styleSheet" >
<string/> <string notr="true" />
</property> </property>
<property name="text" > <property name="text" >
<string>TextLabel</string> <string>TextLabel</string>
...@@ -576,12 +582,27 @@ ...@@ -576,12 +582,27 @@
</item> </item>
</layout> </layout>
</item> </item>
<item>
<widget class="QCheckBox" name="antialiasTextButton" >
<property name="text" >
<string>Smooth fonts</string>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="scrollingTab" > <widget class="QWidget" name="scrollingTab" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>437</width>
<height>472</height>
</rect>
</property>
<attribute name="title" > <attribute name="title" >
<string>Scrolling</string> <string>Scrolling</string>
</attribute> </attribute>
...@@ -647,7 +668,7 @@ ...@@ -647,7 +668,7 @@
<property name="orientation" > <property name="orientation" >
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeHint" > <property name="sizeHint" stdset="0" >
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
...@@ -741,7 +762,7 @@ ...@@ -741,7 +762,7 @@
<property name="orientation" > <property name="orientation" >
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
</property> </property>
<property name="sizeHint" > <property name="sizeHint" stdset="0" >
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
...@@ -752,6 +773,14 @@ ...@@ -752,6 +773,14 @@
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="keyboardTab" > <widget class="QWidget" name="keyboardTab" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>437</width>
<height>472</height>
</rect>
</property>
<attribute name="title" > <attribute name="title" >
<string>Input</string> <string>Input</string>
</attribute> </attribute>
...@@ -820,7 +849,7 @@ ...@@ -820,7 +849,7 @@
<property name="orientation" > <property name="orientation" >
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
</property> </property>
<property name="sizeHint" > <property name="sizeHint" stdset="0" >
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
...@@ -834,6 +863,14 @@ ...@@ -834,6 +863,14 @@
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="advancedTab" > <widget class="QWidget" name="advancedTab" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>437</width>
<height>472</height>
</rect>
</property>
<attribute name="title" > <attribute name="title" >
<string>Advanced</string> <string>Advanced</string>
</attribute> </attribute>
...@@ -1088,7 +1125,7 @@ ...@@ -1088,7 +1125,7 @@
<property name="orientation" > <property name="orientation" >
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
</property> </property>
<property name="sizeHint" > <property name="sizeHint" stdset="0" >
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
...@@ -1103,15 +1140,15 @@ ...@@ -1103,15 +1140,15 @@
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget>
<class>KLineEdit</class>
<extends>QLineEdit</extends>
<header location="global" >klineedit.h</header>
</customwidget>
<customwidget> <customwidget>
<class>KColorButton</class> <class>KColorButton</class>
<extends>QPushButton</extends> <extends>QPushButton</extends>
<header location="global" >kcolorbutton.h</header> <header>kcolorbutton.h</header>
</customwidget>
<customwidget>
<class>KLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget> </customwidget>
</customwidgets> </customwidgets>
<resources/> <resources/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment