mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-02 10:24:11 +01:00
OP-1170 Got rid of all compiler warnings in notify plugin.
This commit is contained in:
parent
5be91fa012
commit
3c4bf5be9a
@ -46,9 +46,9 @@ QStringList NotificationItem::retryValues;
|
||||
|
||||
NotificationItem::NotificationItem(QObject *parent)
|
||||
: QObject(parent)
|
||||
, _currentUpdatePlayed(false)
|
||||
, isNowPlaying(0)
|
||||
, _isPlayed(false)
|
||||
, _currentUpdatePlayed(false)
|
||||
, _timer(NULL)
|
||||
, _expireTimer(NULL)
|
||||
, _soundCollectionPath("")
|
||||
|
@ -144,6 +144,7 @@ void NotifyItemDelegate::setModelData(QWidget *editor, QAbstractItemModel *model
|
||||
|
||||
void NotifyItemDelegate::selectRow(const QString & text)
|
||||
{
|
||||
Q_UNUSED(text);
|
||||
QComboBox *combo = qobject_cast<QComboBox *>(sender());
|
||||
QTableWidget *table = new QTableWidget;
|
||||
|
||||
|
@ -351,13 +351,6 @@ void SoundNotifyPlugin::stateChanged(QMediaPlayer::State newstate)
|
||||
playNotification(notification);
|
||||
qNotifyDebug() << "end playNotification";
|
||||
}
|
||||
} else {
|
||||
if (newstate == QMediaPlayer::ServiceMissingError) {
|
||||
if (phonon.mo->error() == 0) {
|
||||
qDebug() << "Phonon::ErrorState: ErrorType = " << phonon.mo->error();
|
||||
phonon.mo->stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -640,7 +640,8 @@ void NotifyPluginOptionsPage::on_FinishedPlaying()
|
||||
|
||||
void NotifyPluginOptionsPage::on_toggled_checkEnableSound(bool state)
|
||||
{
|
||||
bool state1 = 1 ^ state;
|
||||
Q_UNUSED(state);
|
||||
//bool state1 = 1 ^ state;
|
||||
|
||||
// QList<Phonon::Path> listOutputs = _testSound->outputPaths();
|
||||
// Phonon::AudioOutput *audioOutput = (Phonon::AudioOutput *)listOutputs.last().sink();
|
||||
|
@ -186,6 +186,7 @@ QStringList NotifyTableModel::mimeTypes() const
|
||||
bool NotifyTableModel::dropMimeData(const QMimeData *data, Qt::DropAction action, int row,
|
||||
int column, const QModelIndex & parent)
|
||||
{
|
||||
Q_UNUSED(column);
|
||||
if (action == Qt::IgnoreAction) {
|
||||
return true;
|
||||
}
|
||||
|
@ -45,6 +45,7 @@ public:
|
||||
NotifyTableModel(QList<NotificationItem *> & parentList, QObject *parent = 0);
|
||||
int rowCount(const QModelIndex & parent = QModelIndex()) const
|
||||
{
|
||||
Q_UNUSED(parent);
|
||||
return _list.count();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user