mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
* Style updates and smaller fixes.
This commit is contained in:
@@ -34,7 +34,8 @@
|
|||||||
#include "filemetadata/taghandlers/tag.h"
|
#include "filemetadata/taghandlers/tag.h"
|
||||||
#include "utils/TomahawkUtils.h"
|
#include "utils/TomahawkUtils.h"
|
||||||
|
|
||||||
MetadataEditor::MetadataEditor( Tomahawk::result_ptr result, QWidget *parent )
|
|
||||||
|
MetadataEditor::MetadataEditor( const Tomahawk::result_ptr& result, QWidget* parent )
|
||||||
: QDialog( parent )
|
: QDialog( parent )
|
||||||
, ui( new Ui::MetadataEditor )
|
, ui( new Ui::MetadataEditor )
|
||||||
, m_result( result )
|
, m_result( result )
|
||||||
|
@@ -35,16 +35,16 @@ class MetadataEditor : public QDialog
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MetadataEditor( Tomahawk::result_ptr result, QWidget* parent = 0 );
|
MetadataEditor( const Tomahawk::result_ptr& result, QWidget* parent = 0 );
|
||||||
~MetadataEditor() {};
|
~MetadataEditor() {};
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
QString title() { return ui->titleLineEdit->text(); }
|
QString title() const { return ui->titleLineEdit->text(); }
|
||||||
QString artist() { return ui->artistLineEdit->text(); }
|
QString artist() const { return ui->artistLineEdit->text(); }
|
||||||
QString album() { return ui->albumLineEdit->text(); }
|
QString album() const { return ui->albumLineEdit->text(); }
|
||||||
int discnumber() { return ui->discNumberSpinBox->value(); }
|
int discnumber() const { return ui->discNumberSpinBox->value(); }
|
||||||
int year() { return ui->yearSpinBox->value(); }
|
int year() const { return ui->yearSpinBox->value(); }
|
||||||
int bitrate() { return ui->bitrateSpinBox->value(); }
|
int bitrate() const { return ui->bitrateSpinBox->value(); }
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void writeMetadata();
|
void writeMetadata();
|
||||||
|
Reference in New Issue
Block a user