Better dialogs on Mac.
authorAkos Polster <polster@marzipan.pipacs.com>
Sat, 17 Jul 2010 15:56:51 +0000 (17:56 +0200)
committerAkos Polster <polster@marzipan.pipacs.com>
Sat, 17 Jul 2010 15:56:51 +0000 (17:56 +0200)
Make returning from full screen mode more obvious.

devtools.cpp
librarydialog.cpp
pkg/changelog
translucentbutton.cpp

index e03091d..fa25015 100644 (file)
@@ -38,7 +38,12 @@ void DevTools::onClear()
     if (QMessageBox::Yes ==
         QMessageBox::question(this, "Clear persistent data?",
                               "Library and settings data will be cleared, "
-                              "application will be restarted. Continue?")) {
+                              "application will be restarted. Continue?",
+                              QMessageBox::Yes
+#ifndef Q_WS_MAEMO_5
+                              , QMessageBox::No
+#endif
+                              )) {
         QSettings().clear();
         QApplication::exit(1000);
     }
index 003a14a..cab4428 100644 (file)
@@ -131,8 +131,12 @@ void LibraryDialog::onRemove()
     int row = list->row(item);
     QString title = Library::instance()->at(row)->title;
     if (QMessageBox::Yes ==
-        QMessageBox::question(this, "Delete book", "Delete book " + title,
-                              QMessageBox::Yes, QMessageBox::No)) {
+        QMessageBox::question(this, "Delete book",
+                              "Delete book \"" + title + "\"?", QMessageBox::Yes
+#ifndef Q_WS_MAEMO_5
+                              , QMessageBox::No
+#endif
+                              )) {
         list->takeItem(row);
         Library::instance()->remove(row);
     }
index 0d5a46f..29342d4 100644 (file)
@@ -1,6 +1,8 @@
 dorian (0.0.9-1) unstable; urgency=low
 
   * Optify Maemo package
+  * Better dialogs on Mac
+  * Make returning from full screen mode more obvious
 
  -- Akos Polster <akos@pipacs.com>  Fri, 16 Jul 2010 20:00:00 +0200
 
index d7c5f47..cc70aa5 100644 (file)
@@ -1,4 +1,4 @@
-#include "translucentbutton.h" 
+#include "translucentbutton.h"
 
 #ifdef Q_WS_MAC
 #   define ICON_PREFIX ":/icons/mac/"
@@ -25,7 +25,7 @@ void TranslucentButton::paintEvent(QPaintEvent *e)
 void TranslucentButton::flash()
 {
     QPropertyAnimation *ani = new QPropertyAnimation(this, "opacity", 0);
-    ani->setDuration(2000);
+    ani->setDuration(5000);
     ani->setStartValue(0.);
     ani->setEndValue(1.);
     ani->setEasingCurve(QEasingCurve::OutQuart);