Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
97f29845
Commit
97f29845
authored
Jul 12, 2015
by
Zach H
Browse files
first fixes
parent
dc05a14f
Changes
4
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/chatview.cpp
View file @
97f29845
...
...
@@ -427,11 +427,6 @@ void ChatView::appendMessage(QString message, QString sender, UserLevelFlags use
cursor
.
setCharFormat
(
defaultFormat
);
message
=
message
.
mid
(
firstSpace
);
QApplication
::
alert
(
this
);
if
(
settingsCache
->
getShowMentionPopup
()
&&
shouldShowSystemPopup
())
{
QString
ref
=
sender
.
left
(
sender
.
length
()
-
2
);
showSystemPopup
(
ref
);
}
}
else
{
...
...
cockatrice/src/dlg_settings.cpp
View file @
97f29845
...
...
@@ -710,7 +710,7 @@ void MessagesSettingsPage::retranslateUi()
messagePopups
.
setText
(
tr
(
"Enable desktop notifications for private messages."
));
mentionPopups
.
setText
(
tr
(
"Enable desktop notification for mentions."
));
hexLabel
.
setText
(
tr
(
"(Color is hexadecimal)"
));
customAlertStringLabel
.
setText
(
tr
(
"(Seperate each word with a comma
; W
ords are case insensitive)"
));
customAlertStringLabel
.
setText
(
tr
(
"(Seperate each word with a comma
, w
ords are case insensitive)"
));
}
...
...
cockatrice/src/settingscache.cpp
View file @
97f29845
...
...
@@ -91,7 +91,7 @@ void SettingsCache::setCardInfoViewMode(const int _viewMode) {
settings
->
setValue
(
"cards/cardinfoviewmode"
,
cardInfoViewMode
);
}
void
SettingsCache
::
setHighlightWords
(
const
QString
_highlightWords
)
{
void
SettingsCache
::
setHighlightWords
(
const
QString
&
_highlightWords
)
{
// Words are seperated by a comma and you can not use spaces in words
highlightWords
=
_highlightWords
.
simplified
().
replace
(
" "
,
""
).
split
(
","
);
settings
->
setValue
(
"personal/highlightWords"
,
highlightWords
);
...
...
cockatrice/src/settingscache.h
View file @
97f29845
...
...
@@ -196,7 +196,7 @@ public slots:
void
setLeftJustified
(
const
int
_leftJustified
);
void
setMasterVolume
(
const
int
_masterVolume
);
void
setCardInfoViewMode
(
const
int
_viewMode
);
void
setHighlightWords
(
const
QString
_highlightWords
);
void
setHighlightWords
(
const
QString
&
_highlightWords
);
};
extern
SettingsCache
*
settingsCache
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment