mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
clear buttons
This commit is contained in:
parent
6561ca216c
commit
a7faa5c139
1 changed files with 3 additions and 0 deletions
|
|
@ -805,6 +805,7 @@ MessagesSettingsPage::MessagesSettingsPage()
|
|||
connect(&invertHighlightForeground, SIGNAL(stateChanged(int)), this, SLOT(updateTextHighlightColor(int)));
|
||||
|
||||
mentionColor = new QLineEdit();
|
||||
mentionColor->setClearButtonEnabled(enable);
|
||||
mentionColor->setPlaceholderText(tr("HEX Color Code"));
|
||||
mentionColor->setText(SettingsCache::instance().getChatMentionColor());
|
||||
updateMentionPreview();
|
||||
|
|
@ -820,6 +821,7 @@ MessagesSettingsPage::MessagesSettingsPage()
|
|||
connect(&roomHistory, SIGNAL(stateChanged(int)), &SettingsCache::instance(), SLOT(setRoomHistory(int)));
|
||||
|
||||
customAlertString = new QLineEdit();
|
||||
customAlertString->setClearButtonEnabled(enable);
|
||||
customAlertString->setPlaceholderText(tr("Word1 Word2 Word3"));
|
||||
customAlertString->setText(SettingsCache::instance().getHighlightWords());
|
||||
connect(customAlertString, SIGNAL(textChanged(QString)), &SettingsCache::instance(),
|
||||
|
|
@ -840,6 +842,7 @@ MessagesSettingsPage::MessagesSettingsPage()
|
|||
chatGroupBox->setLayout(chatGrid);
|
||||
|
||||
highlightColor = new QLineEdit();
|
||||
highlightColor->setClearButtonEnabled(enable);
|
||||
highlightColor->setPlaceholderText(tr("HEX Color Code"));
|
||||
highlightColor->setText(SettingsCache::instance().getChatHighlightColor());
|
||||
updateHighlightPreview();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue