changeset 666:98a7fbbe9d88 qt5

Merge from default branch, and build fixes
author Chris Cannam
date Fri, 27 May 2016 09:55:56 +0100
parents f9b805d8cab4 (current diff) 88061103b878 (diff)
children 0f3e086066fc
files easyhg.pro src/hgrunner.cpp
diffstat 3 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/hgrunner.cpp	Thu Mar 14 16:43:30 2013 +0000
+++ b/src/hgrunner.cpp	Fri May 27 09:55:56 2016 +0100
@@ -411,7 +411,7 @@
             emit commandCompleted(completedAction, m_stdout);
         } else {
             DEBUG << "HgRunner::finished: Command failed, exit code "
-                  << procExitCode << ", exit status " << procExitStatus
+                  << procExitCode << ", exit status " << int(procExitStatus)
                   << ", stderr follows" << endl;
             DEBUG << m_stderr << endl;
             emit commandFailed(completedAction, m_stderr, m_stdout);
--- a/src/mainwindow.cpp	Thu Mar 14 16:43:30 2013 +0000
+++ b/src/mainwindow.cpp	Fri May 27 09:55:56 2016 +0100
@@ -3048,6 +3048,16 @@
 
 void MainWindow::createMenus()
 {
+#ifdef Q_OS_LINUX
+    // In Ubuntu 14.04 the window's menu bar goes missing entirely if
+    // the user is running any desktop environment other than Unity
+    // (in which the faux single-menubar appears). The user has a
+    // workaround, to remove the appmenu-qt5 package, but that is
+    // awkward and the problem is so severe that it merits disabling
+    // the system menubar integration altogether. Like this:
+    menuBar()->setNativeMenuBar(false);
+#endif
+
     m_fileMenu = menuBar()->addMenu(tr("&File"));
 
     m_fileMenu->addAction(m_openAct);
--- a/src/panner.cpp	Thu Mar 14 16:43:30 2013 +0000
+++ b/src/panner.cpp	Fri May 27 09:55:56 2016 +0100
@@ -59,7 +59,7 @@
             m = Qt::KeepAspectRatio;
         }
     }
-    DEBUG << "Panner: fit mode " << m << endl;
+    DEBUG << "Panner: fit mode " << int(m) << endl;
     fitInView(r, m);
 }