autorotate for maemo
authortmarki <tmarki@gmail.com>
Thu, 12 Aug 2010 11:07:17 +0000 (13:07 +0200)
committertmarki <tmarki@gmail.com>
Thu, 12 Aug 2010 11:07:17 +0000 (13:07 +0200)
new dialog for options
new bugs logged

bugs.txt
mainwindow.cpp
optiondialog.cpp [new file with mode: 0644]
optiondialog.h [new file with mode: 0644]
tomamp.pro

index cd91f3f..8001ce8 100644 (file)
--- a/bugs.txt
+++ b/bugs.txt
@@ -1,6 +1,7 @@
 - remember folder position when adding songs (takes time as adding a song and going one folder up for next song jumps to top of folder)
 - when saving a playlist, the default path seems invalid, so playlist doesn's save, and no error given
 - for some reasom, one folder shows 0 files, but filled with mp3 files (?)
+- quit while reading tags causes crash
 
 Fixed:
 + context menu event outside of musicTable causes crash
index b627f1a..a3f1bde 100644 (file)
@@ -10,6 +10,9 @@
 MainWindow::MainWindow()
     : plman (this), settings (tr ("TomAmp"), "TomAmp"), isPlaying (false)
 {
+#ifdef Q_WS_MAEMO_5
+    setAttribute(Qt::WA_Maemo5AutoOrientation, true);
+#endif
     audioOutput = new Phonon::AudioOutput(Phonon::MusicCategory, this);
     mediaObject = new Phonon::MediaObject(this);
 
diff --git a/optiondialog.cpp b/optiondialog.cpp
new file mode 100644 (file)
index 0000000..ed40032
--- /dev/null
@@ -0,0 +1,6 @@
+#include "optiondialog.h"
+
+OptionDialog::OptionDialog(QWidget *parent) :
+    QDialog(parent)
+{
+}
diff --git a/optiondialog.h b/optiondialog.h
new file mode 100644 (file)
index 0000000..12d15ce
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef OPTIONDIALOG_H
+#define OPTIONDIALOG_H
+
+#include <QDialog>
+
+class OptionDialog : public QDialog
+{
+    Q_OBJECT
+public:
+    explicit OptionDialog(QWidget *parent = 0);
+
+signals:
+
+public slots:
+
+};
+
+#endif // OPTIONDIALOG_H
index 87474f9..13eaa0f 100644 (file)
@@ -12,10 +12,12 @@ TEMPLATE = app
 
 SOURCES += main.cpp\
         mainwindow.cpp \
-    playlistmanager.cpp
+    playlistmanager.cpp \
+    optiondialog.cpp
 
 HEADERS  += mainwindow.h \
-    playlistmanager.h
+    playlistmanager.h \
+    optiondialog.h
 
 FORMS    +=