Commit f44bfc97 authored by Jan Möbius's avatar Jan Möbius
Browse files

Removed deprecated function

parent 2d4ef5e6
......@@ -820,7 +820,7 @@ void SelectionBasePlugin::slotAddSelectionOperations(QString _handleName, QStrin
QPushButton* button = new QPushButton(_operationsList[i]);
button->setDisabled(true);
button->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
int width = button->fontMetrics().width(_operationsList[i]);
int width = button->fontMetrics().horizontalAdvance(_operationsList[i]);
button->setMinimumWidth(width);
button->setFixedHeight(26);
......
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