1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2025-02-07 05:31:24 +00:00

Fixed a couple of Qt 5.3 problems.

This commit is contained in:
Filippo Scognamiglio 2014-07-07 01:42:17 +02:00
parent 85c7d8ea97
commit 8ec688f1d9
3 changed files with 7 additions and 3 deletions

View File

@ -133,9 +133,8 @@ Tab{
minimumValue: 0 minimumValue: 0
onValueChanged: shadersettings.window_scaling = value; onValueChanged: shadersettings.window_scaling = value;
value: shadersettings.window_scaling value: shadersettings.window_scaling
updateValueWhileDragging: false
} }
Text{text: Math.round(txtslider.__handlePos * 100) + "%"} Text{text: Math.round(txtslider.value * 100) + "%"}
} }
} }
} }

View File

@ -30,6 +30,9 @@ ApplicationWindow{
width: 1024 width: 1024
height: 768 height: 768
minimumWidth: 320
minimumHeight: 240
title: qsTr("cool-old-term") title: qsTr("cool-old-term")
visible: true visible: true
visibility: shadersettings.fullscreen ? Window.FullScreen : Window.Windowed visibility: shadersettings.fullscreen ? Window.FullScreen : Window.Windowed

View File

@ -393,7 +393,9 @@ void KTerminalDisplay::setVTFont(const QFont& f)
qDebug() << "Using an unsupported variable-width font in the terminal. This may produce display errors."; qDebug() << "Using an unsupported variable-width font in the terminal. This may produce display errors.";
} }
if ( metrics.height() < height() && metrics.maxWidth() < width() ) // TODO For some reasons this is bugged with Qt 5.3
//if ( metrics.height() < height() && metrics.maxWidth() < width() )
if (font.pixelSize() > 0)
{ {
// hint that text should be drawn without anti-aliasing. // hint that text should be drawn without anti-aliasing.
// depending on the user's font configuration, this may not be respected // depending on the user's font configuration, this may not be respected