minor fixes

This commit is contained in:
fourtf 2018-05-06 15:39:03 +02:00
parent 3e3cbf0415
commit c2363e17e7
3 changed files with 3 additions and 1 deletions

View file

@ -40,6 +40,7 @@ void HighlightModel::afterInit()
row[0]->setData("Your username (automatic)", Qt::DisplayRole);
util::setBoolItem(row[1], getApp()->settings->enableHighlightTaskbar.getValue(), true, false);
util::setBoolItem(row[2], getApp()->settings->enableHighlightSound.getValue(), true, false);
row[3]->setFlags(0);
this->insertCustomRow(row, 0);
}

View file

@ -31,7 +31,7 @@ public:
, alert(_alert)
, sound(_sound)
, _isRegex(isRegex)
, regex(_isRegex ? _pattern : "\b" + QRegularExpression::escape(_pattern) + "\b",
, regex(_isRegex ? _pattern : "\\b" + QRegularExpression::escape(_pattern) + "\\b",
QRegularExpression::CaseInsensitiveOption)
{
}

View file

@ -23,6 +23,7 @@ EditableModelView::EditableModelView(QAbstractTableModel *_model)
// create layout
QVBoxLayout *vbox = new QVBoxLayout(this);
vbox->setMargin(0);
vbox->addWidget(this->tableView);
// create button layout