LML knows where the files are.
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();
int automark() const;
void setAutomark(int percent);
- QStringList paths() const;
- void setPaths(const QStringList &paths);
-
int opSkip() const;
void setOpSkip(int seconds);
<x>0</x>
<y>0</y>
<width>302</width>
- <height>185</height>
+ <height>159</height>
</rect>
</property>
<property name="windowTitle">
<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>
ConfigDialog dialog(this);
dialog.setAutomark(player->automark());
- dialog.setPaths(m_automarkPaths);
dialog.setOpSkip(m_opSkip);
if (!dialog.exec())
}
player->setAutomark(dialog.automark());
- m_automarkPaths = dialog.paths();
m_opSkip = dialog.opSkip();
}
settings.endGroup();
settings.beginGroup("anidbudpapiclient");
player->setAutomark(settings.value("automark", 0).toInt());
-// m_automarkPaths = settings.value("paths", QStringList()).toStringList();
settings.endGroup();
}
int m_opSkip;
- QStringList m_automarkPaths;
- bool m_marked;
- bool m_automarkable;
-
bool mouseMoved;
QPoint dragPosition;
bool dragged;