From 35813fc153644f45ff4affc760821758dbf75658 Mon Sep 17 00:00:00 2001 From: tmarki Date: Thu, 12 Aug 2010 13:07:17 +0200 Subject: [PATCH] autorotate for maemo new dialog for options new bugs logged --- bugs.txt | 1 + mainwindow.cpp | 3 +++ optiondialog.cpp | 6 ++++++ optiondialog.h | 18 ++++++++++++++++++ tomamp.pro | 6 ++++-- 5 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 optiondialog.cpp create mode 100644 optiondialog.h diff --git a/bugs.txt b/bugs.txt index cd91f3f..8001ce8 100644 --- 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 diff --git a/mainwindow.cpp b/mainwindow.cpp index b627f1a..a3f1bde 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -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 index 0000000..ed40032 --- /dev/null +++ b/optiondialog.cpp @@ -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 index 0000000..12d15ce --- /dev/null +++ b/optiondialog.h @@ -0,0 +1,18 @@ +#ifndef OPTIONDIALOG_H +#define OPTIONDIALOG_H + +#include + +class OptionDialog : public QDialog +{ + Q_OBJECT +public: + explicit OptionDialog(QWidget *parent = 0); + +signals: + +public slots: + +}; + +#endif // OPTIONDIALOG_H diff --git a/tomamp.pro b/tomamp.pro index 87474f9..13eaa0f 100644 --- a/tomamp.pro +++ b/tomamp.pro @@ -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 += -- 1.7.9.5