Commit a402947c authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

Use QVariant::toString instead of ::value

parent 5168fa3c
......@@ -1282,7 +1282,7 @@ void ColorSchemeViewDelegate::paint(QPainter* painter, const QStyleOptionViewIte
painter->drawText(option.rect.adjusted(sampleTextWidth + 15,0,0,0),
Qt::AlignLeft | Qt::AlignVCenter,
index.data(Qt::DisplayRole).value<QString>());
index.data(Qt::DisplayRole).toString());
// Draw the preview
const int x = option.rect.left();
......
......@@ -67,7 +67,7 @@ TabTitleFormatButton::~TabTitleFormatButton()
void TabTitleFormatButton::fireElementSelected(QAction* action)
{
emit dynamicElementSelected(action->data().value<QString>());
emit dynamicElementSelected(action->data().toString());
}
void TabTitleFormatButton::setContext(Session::TabTitleContext titleContext)
......
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