]> Some of my projects - aniplayer2.git/commitdiff
Mark paths are no longer needed.
authorAPTX <marek321@gmail.com>
Sun, 16 Feb 2014 13:16:48 +0000 (14:16 +0100)
committerAPTX <marek321@gmail.com>
Sun, 16 Feb 2014 13:16:48 +0000 (14:16 +0100)
LML knows where the files are.

player/configdialog.cpp
player/configdialog.h
player/configdialog.ui
player/mainwindow.cpp
player/mainwindow.h

index a08e26bfe0251e0135896abad3e3e17afb594530..1a0083290a8aab9ee75630dfb5db6748ab1051a9 100644 (file)
@@ -20,16 +20,6 @@ void ConfigDialog::setAutomark(int percent)
        m_ui->automark->setValue(percent);
 }
 
-QStringList ConfigDialog::paths() const
-{
-       return QDir::fromNativeSeparators(m_ui->paths->text()).split(';');
-}
-
-void ConfigDialog::setPaths(const QStringList &paths)
-{
-       m_ui->paths->setText(QDir::toNativeSeparators(paths.join(";")));
-}
-
 int ConfigDialog::opSkip() const
 {
        return m_ui->opSkip->value();
index fd1a3d0e90d3ba1018446ca135c769ef3d07e062..0637a2b1a6ecd25c5e1c8534be4f17238c024a4e 100644 (file)
@@ -17,9 +17,6 @@ public:
        int automark() const;
        void setAutomark(int percent);
 
-       QStringList paths() const;
-       void setPaths(const QStringList &paths);
-
        int opSkip() const;
        void setOpSkip(int seconds);
 
index 014813c4f8e3104acf4d31a8c751570a7e8a5432..f78389cbe4dbdac2844be69aa1a684d59f2bb67f 100644 (file)
@@ -7,7 +7,7 @@
     <x>0</x>
     <y>0</y>
     <width>302</width>
-    <height>185</height>
+    <height>159</height>
    </rect>
   </property>
   <property name="windowTitle">
@@ -20,6 +20,9 @@
       <string>Automark</string>
      </property>
      <layout class="QFormLayout" name="formLayout">
+      <property name="fieldGrowthPolicy">
+       <enum>QFormLayout::AllNonFixedFieldsGrow</enum>
+      </property>
       <item row="0" column="0">
        <widget class="QLabel" name="lAutomark">
         <property name="text">
         </property>
        </widget>
       </item>
-      <item row="1" column="0">
-       <widget class="QLabel" name="lPaths">
-        <property name="text">
-         <string>Paths:</string>
-        </property>
-        <property name="buddy">
-         <cstring>paths</cstring>
-        </property>
-       </widget>
-      </item>
-      <item row="1" column="1">
-       <widget class="QLineEdit" name="paths"/>
-      </item>
      </layout>
     </widget>
    </item>
  </widget>
  <tabstops>
   <tabstop>automark</tabstop>
-  <tabstop>paths</tabstop>
   <tabstop>opSkip</tabstop>
   <tabstop>buttonBox</tabstop>
  </tabstops>
index 2e47e8fd661a9e6ec24bedfde9b4a4dccd9dc934..2a1e0dc190921c7be5867d52ee1bc2561aea72a5 100644 (file)
@@ -447,7 +447,6 @@ void MainWindow::showConfigDialog()
        ConfigDialog dialog(this);
 
        dialog.setAutomark(player->automark());
-       dialog.setPaths(m_automarkPaths);
        dialog.setOpSkip(m_opSkip);
 
        if (!dialog.exec())
@@ -456,7 +455,6 @@ void MainWindow::showConfigDialog()
        }
 
        player->setAutomark(dialog.automark());
-       m_automarkPaths = dialog.paths();
        m_opSkip = dialog.opSkip();
 }
 
@@ -525,6 +523,5 @@ void MainWindow::loadSettings()
        settings.endGroup();
        settings.beginGroup("anidbudpapiclient");
                player->setAutomark(settings.value("automark", 0).toInt());
-//             m_automarkPaths = settings.value("paths", QStringList()).toStringList();
        settings.endGroup();
 }
index f31082e743b9f453bbddc63959148decf7295c1b..86ad4471b30377582d212c963b05d2b480bfd0ba 100644 (file)
@@ -75,10 +75,6 @@ private:
 
        int m_opSkip;
 
-       QStringList m_automarkPaths;
-       bool m_marked;
-       bool m_automarkable;
-
        bool mouseMoved;
        QPoint dragPosition;
        bool dragged;