Handle a bunch more clang warnings
This commit is contained in:
@ -29,7 +29,10 @@ class IconPickerDialog : public QDialog
|
||||
public:
|
||||
explicit IconPickerDialog(QWidget *parent = 0);
|
||||
~IconPickerDialog();
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Woverloaded-virtual"
|
||||
int exec(QString selection);
|
||||
#pragma clang diagnostic pop
|
||||
QString selectedIconKey;
|
||||
|
||||
protected:
|
||||
|
@ -34,7 +34,11 @@ public:
|
||||
|
||||
void updateSize();
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Woverloaded-virtual"
|
||||
int exec(ProgressProvider *task);
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
void setSkipButton(bool present, QString label = QString());
|
||||
|
||||
ProgressProvider *getTask();
|
||||
|
@ -27,7 +27,7 @@ namespace Ui
|
||||
class ScreenshotsPage;
|
||||
}
|
||||
|
||||
class ScreenShot;
|
||||
struct ScreenShot;
|
||||
class ScreenshotList;
|
||||
class ImgurAlbumCreation;
|
||||
|
||||
|
@ -214,10 +214,7 @@ void VersionPage::on_moveLibraryUpBtn_clicked()
|
||||
try
|
||||
{
|
||||
const int row = ui->libraryTreeView->selectionModel()->selectedRows().first().row();
|
||||
const int newRow = 0;
|
||||
m_version->move(row, InstanceVersion::MoveUp);
|
||||
// ui->libraryTreeView->selectionModel()->setCurrentIndex(m_version->index(newRow),
|
||||
// QItemSelectionModel::ClearAndSelect);
|
||||
}
|
||||
catch (MMCError &e)
|
||||
{
|
||||
@ -234,10 +231,7 @@ void VersionPage::on_moveLibraryDownBtn_clicked()
|
||||
try
|
||||
{
|
||||
const int row = ui->libraryTreeView->selectionModel()->selectedRows().first().row();
|
||||
const int newRow = 0;
|
||||
m_version->move(row, InstanceVersion::MoveDown);
|
||||
// ui->libraryTreeView->selectionModel()->setCurrentIndex(m_version->index(newRow),
|
||||
// QItemSelectionModel::ClearAndSelect);
|
||||
}
|
||||
catch (MMCError &e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user