1
0
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:
m_thread 2014-02-26 17:36:37 +01:00
parent 5be91fa012
commit 3c4bf5be9a
6 changed files with 6 additions and 9 deletions

View File

@ -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("")

View File

@ -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;

View File

@ -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();
}
}
}
}

View File

@ -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();

View File

@ -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;
}

View File

@ -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();
}