Fix clang compile warnings
This commit is contained in:
@@ -52,7 +52,7 @@ public:
|
||||
|
||||
QSize sizeHint() { return QSize(480+(pageDecode()->leftSidePanelColumns()+pageDecode()->rightSidePanelColumns())*12, 250); }
|
||||
|
||||
void inputMethodEvent(QInputMethodEvent *event);
|
||||
void inputMethodEvent(QInputMethodEvent *event) override;
|
||||
|
||||
TeletextDocument* document() const { return m_teletextDocument; }
|
||||
TeletextPageDecode *pageDecode() { return &m_pageDecode; }
|
||||
|
||||
@@ -264,7 +264,7 @@ void MainWindow::exportImage()
|
||||
QImage scaledImage[6];
|
||||
|
||||
for (int p=0; p<6; p++)
|
||||
if (!interImage[p].isNull())
|
||||
if (!interImage[p].isNull()) {
|
||||
if (m_viewAspectRatio == 3)
|
||||
// Aspect ratio is Pixel 1:2 so we only need to double the vertical height
|
||||
scaledImage[p] = interImage[p].scaled(interImage[p].width(), interImage[p].height()*2, Qt::IgnoreAspectRatio, Qt::FastTransformation);
|
||||
@@ -276,6 +276,7 @@ void MainWindow::exportImage()
|
||||
// Don't smooth GIF as it's bound to break the 256 colour limit
|
||||
scaledImage[p] = doubleHeightImage.scaled((int)((float)doubleHeightImage.width() * aspectRatioHorizontalScaling[m_viewAspectRatio] * 2), doubleHeightImage.height(), Qt::IgnoreAspectRatio, (suffix == "gif") ? Qt::FastTransformation : Qt::SmoothTransformation);
|
||||
}
|
||||
}
|
||||
|
||||
if (suffix == "png") {
|
||||
if (scaledImage[0].save(exportFileName, "PNG"))
|
||||
|
||||
@@ -35,11 +35,11 @@ public:
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override ;
|
||||
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
|
||||
bool setData(const QModelIndex &index, const QVariant &value, int role);
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
|
||||
bool insertRows(int position, int rows, const QModelIndex &parent);
|
||||
bool setData(const QModelIndex &index, const QVariant &value, int role) override;
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
|
||||
bool insertRows(int position, int rows, const QModelIndex &parent) override;
|
||||
bool insertRows(int position, int rows, const QModelIndex &parent, X26Triplet triplet);
|
||||
bool removeRows(int position, int rows, const QModelIndex &index);
|
||||
bool removeRows(int position, int rows, const QModelIndex &index) override;
|
||||
// Qt::ItemFlags flags(const QModelIndex &index) const;
|
||||
|
||||
// The x26commands classes manipulate the model but beginInsertRows and endInsertRows
|
||||
|
||||
Reference in New Issue
Block a user