void ChannelItemDelegate::paintAggregate(QPainter* painter,
const QStyleOptionViewItem& option,
const QModelIndex& index) const {
+ Q_UNUSED(index);
painter->save();
painter->translate(option.rect.topLeft());
void ChannelItemDelegate::paintUnwatched(QPainter* painter,
const QStyleOptionViewItem& option,
const QModelIndex& index) const {
+ Q_UNUSED(index);
painter->save();
painter->translate(option.rect.topLeft());
// channelsModel->clearHover();
}
-void ChannelView::itemEntered(const QModelIndex &index) {
+void ChannelView::itemEntered(const QModelIndex &) {
// channelsModel->setHoveredRow(index.row());
}
}
void ChannelView::updateQuery(bool transition) {
+ Q_UNUSED(transition);
errorMessage.clear();
if (!Database::exists()) return;
void updatePlayIcon();
private:
- int columnCount() { return 1; }
+ int columnCount(const QModelIndex &/*parent*/ = QModelIndex()) const { return 1; }
- DownloadManager *downloadManager;
+ DownloadManager *const downloadManager;
int hoveredRow;
bool playIconHovered;
bool playIconPressed;
}
void MainWindow::showWidget(QWidget* widget, bool transition) {
-
+ Q_UNUSED(transition);
if (compactViewAct->isChecked())
compactViewAct->toggle();
return i;
}
-MediaView::MediaView(QWidget *parent) : QWidget(parent),
- stopped(false),
+MediaView::MediaView(QWidget *parent) : QWidget(parent)
+ , stopped(false)
+ , downloadItem(0)
#ifdef APP_SNAPSHOT
- snapshotSettings(0),
+ , snapshotSettings(0)
#endif
- downloadItem(0) { }
+ { }
void MediaView::initialize() {
QBoxLayout *layout = new QVBoxLayout(this);
}
void MediaView::setVideoSource(VideoSource *videoSource, bool addToHistory, bool back) {
+ Q_UNUSED(back);
stopped = false;
#ifdef APP_ACTIVATION
}
void MediaView::sliderMoved(int value) {
+ Q_UNUSED(value);
#ifdef APP_PHONON
#ifndef APP_PHONON_SEEK
PaginatedVideoSource::PaginatedVideoSource(QObject *parent) : VideoSource(parent)
, tokenTimestamp(0)
- , reloadingToken(false)
, currentMax(0)
, currentStartIndex(0)
+ , reloadingToken(false)
, asyncDetails(false) { }
bool PaginatedVideoSource::hasMoreVideos() {
}
-void RefineSearchButton::paintEvent(QPaintEvent *event) {
+void RefineSearchButton::paintEvent(QPaintEvent *) {
// QPushButton::paintEvent(event);
QPainter painter(this);
painter.setRenderHints(QPainter::Antialiasing, true);
#endif
#include "view.h"
-class YTRegion;
+struct YTRegion;
class RegionsView : public QWidget, public View {
hovered = false;
}
-void ClearButton::mousePressEvent(QEvent *e) {
+void ClearButton::mousePressEvent(QMouseEvent *e) {
Q_UNUSED(e);
mousePressed = true;
}
-void ClearButton::mouseReleaseEvent(QEvent *e) {
+void ClearButton::mouseReleaseEvent(QMouseEvent *e) {
Q_UNUSED(e);
mousePressed = false;
}
void enterEvent(QEvent *e);
void leaveEvent(QEvent *e);
- void mousePressEvent(QEvent *e);
- void mouseReleaseEvent(QEvent *e);
+ void mousePressEvent(QMouseEvent *e);
+ void mouseReleaseEvent(QMouseEvent *e);
private:
bool hovered;
#include "view.h"
class VideoSource;
-class YTCategory;
+struct YTCategory;
class YTStandardFeed;
class StandardFeedsView : public QWidget, public View {