Commit 24817dbe authored by Arthur M's avatar Arthur M Committed by Caio Tonetti
Browse files

replaced a function by another function that does the same job in this case...

replaced a function by another function that does the same job in this case but works in Qt < 5.11 too
parent 39683511
......@@ -139,7 +139,7 @@ void MainWindow::setupWidgets()
QWidget *sidePanel = setupSidePanel();
QWidget *scriptPanel = setupScriptPanel();
// splits the main window horizontal
// splits the main window horizontally
m_vSplitter = new QSplitter(this);
m_vSplitter->setOrientation(Qt::Vertical);
m_vSplitter->addWidget(m_graphEditorWidget);
......
......@@ -64,7 +64,7 @@ QSize SideToolButton::sizeHint() const
QFontMetrics fm = fontMetrics();
// calculate example character width
const int charWidth = fm.horizontalAdvance(QLatin1Char('x'));
const int charWidth = fm.boundingRect(QLatin1Char('x')).width();
// compute text size
QSize textSize = fm.size(Qt::TextShowMnemonic, option.text);
......
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