mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-18 19:50:38 +01:00
Fix minor code issues
This commit is contained in:
parent
375d32f08e
commit
b559f7cd16
@ -40,4 +40,3 @@
|
||||
stop:1 %light2);
|
||||
border: 0px solid transparent;
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@ const int PlaylistGenerator::kDefaultLimit = 20;
|
||||
const int PlaylistGenerator::kDefaultDynamicHistory = 5;
|
||||
const int PlaylistGenerator::kDefaultDynamicFuture = 15;
|
||||
|
||||
PlaylistGenerator::PlaylistGenerator() : QObject(nullptr) {}
|
||||
PlaylistGenerator::PlaylistGenerator() : QObject(nullptr), backend_(nullptr) {}
|
||||
|
||||
PlaylistGeneratorPtr PlaylistGenerator::Create(const Type type) {
|
||||
|
||||
|
@ -38,6 +38,7 @@ PlaylistGeneratorInserter::PlaylistGeneratorInserter(TaskManager *task_manager,
|
||||
task_manager_(task_manager),
|
||||
collection_(collection),
|
||||
task_id_(-1),
|
||||
destination_(nullptr),
|
||||
is_dynamic_(false)
|
||||
{}
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
||||
SmartPlaylistSearchTerm::SmartPlaylistSearchTerm() : field_(Field_Title), operator_(Op_Equals) {}
|
||||
|
||||
SmartPlaylistSearchTerm::SmartPlaylistSearchTerm(Field field, Operator op, const QVariant &value)
|
||||
: field_(field), operator_(op), value_(value) {}
|
||||
: field_(field), operator_(op), value_(value), date_(Date_Hour) {}
|
||||
|
||||
QString SmartPlaylistSearchTerm::ToSql() const {
|
||||
|
||||
|
@ -105,7 +105,8 @@ class SmartPlaylistSearchTerm {
|
||||
Date_Hour = 0,
|
||||
Date_Day,
|
||||
Date_Week,
|
||||
Date_Month, Date_Year
|
||||
Date_Month,
|
||||
Date_Year
|
||||
};
|
||||
|
||||
explicit SmartPlaylistSearchTerm();
|
||||
|
@ -36,7 +36,7 @@
|
||||
|
||||
class SmartPlaylistWizard::TypePage : public QWizardPage {
|
||||
public:
|
||||
TypePage(QWidget *parent) : QWizardPage(parent), next_id_(-1) {}
|
||||
explicit TypePage(QWidget *parent) : QWizardPage(parent), next_id_(-1) {}
|
||||
|
||||
int nextId() const { return next_id_; }
|
||||
int next_id_;
|
||||
@ -44,7 +44,7 @@ class SmartPlaylistWizard::TypePage : public QWizardPage {
|
||||
|
||||
class SmartPlaylistWizard::FinishPage : public QWizardPage {
|
||||
public:
|
||||
FinishPage(QWidget *parent) : QWizardPage(parent), ui_(new Ui_SmartPlaylistWizardFinishPage) {
|
||||
explicit FinishPage(QWidget *parent) : QWizardPage(parent), ui_(new Ui_SmartPlaylistWizardFinishPage) {
|
||||
ui_->setupUi(this);
|
||||
connect(ui_->name, SIGNAL(textChanged(QString)), SIGNAL(completeChanged()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user