aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/profilegraphics.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-21 04:23:10 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-21 04:23:10 -0800
commit995192c5fb6bd890741ef2da873da4befd2120c4 (patch)
treed4b797ecaad613a9a4454aa17efb65c405859e83 /qt-ui/profilegraphics.cpp
parent8aadd4d3726bda224d5215bb810e3e37dff53b28 (diff)
downloadsubsurface-995192c5fb6bd890741ef2da873da4befd2120c4.tar.gz
Work around QMessageBox not showing its title on Mac
This is a bit hacky and simply adds the title to the message text when compiling on a Mac, but hopefully this will be enough. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profilegraphics.cpp')
-rw-r--r--qt-ui/profilegraphics.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp
index e0e759dd4..7a5630799 100644
--- a/qt-ui/profilegraphics.cpp
+++ b/qt-ui/profilegraphics.cpp
@@ -182,9 +182,9 @@ void ProfileGraphicsView::hideEvents()
EventItem *item = static_cast<EventItem*>(action->data().value<void*>());
struct event *event = item->ev;
- if (QMessageBox::question(mainWindow(),
+ if (QMessageBox::question(mainWindow(), TITLE_OR_TEXT(
tr("Hide events"),
- tr("Hide all %1 events?").arg(event->name),
+ tr("Hide all %1 events?").arg(event->name)),
QMessageBox::Ok | QMessageBox::Cancel) == QMessageBox::Ok){
if (event->name) {
for (int i = 0; i < evn_used; i++) {
@@ -204,11 +204,11 @@ void ProfileGraphicsView::removeEvent()
EventItem *item = static_cast<EventItem*>(action->data().value<void*>());
struct event *event = item->ev;
- if (QMessageBox::question(mainWindow(),
+ if (QMessageBox::question(mainWindow(), TITLE_OR_TEXT(
tr("Remove the selected event?"),
tr("%1 @ %2:%3").arg(event->name)
.arg(event->time.seconds / 60)
- .arg(event->time.seconds % 60, 2, 10, QChar('0')),
+ .arg(event->time.seconds % 60, 2, 10, QChar('0'))),
QMessageBox::Ok | QMessageBox::Cancel) == QMessageBox::Ok){
struct event **ep = &current_dc->events;
while (ep && *ep != event)