mirror of
https://github.com/YACReader/yacreader
synced 2025-05-27 10:50:27 -04:00
Reader: clean unused code up
closeEvent is accepted by default, so this commit does not change the application behavior. But Qt documentation recommends not relying on the default value as subclasses may choose to clear it in their constructor.
This commit is contained in:
parent
86c4b6158b
commit
39ab598363
@ -1433,8 +1433,6 @@ void MainWindowViewer::newVersion()
|
||||
|
||||
void MainWindowViewer::closeEvent(QCloseEvent *event)
|
||||
{
|
||||
Q_UNUSED(event)
|
||||
|
||||
if (isClient)
|
||||
sendComic();
|
||||
|
||||
@ -1446,7 +1444,7 @@ void MainWindowViewer::closeEvent(QCloseEvent *event)
|
||||
}
|
||||
conf.setMaximized(isMaximized());
|
||||
|
||||
emit(closed());
|
||||
event->accept();
|
||||
}
|
||||
|
||||
void MainWindowViewer::openPreviousComic()
|
||||
|
@ -174,8 +174,6 @@ private:
|
||||
Qt::WindowFlags previousWindowFlags;
|
||||
QPoint previousPos;
|
||||
QSize previousSize;
|
||||
signals:
|
||||
void closed();
|
||||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent *event) override;
|
||||
|
@ -172,7 +172,6 @@ private:
|
||||
public:
|
||||
Viewer(QWidget *parent = nullptr);
|
||||
~Viewer();
|
||||
void toggleFullScreen();
|
||||
const QPixmap *pixmap();
|
||||
//Comic * getComic(){return comic;}
|
||||
const BookmarksDialog *getBookmarksDialog() { return bd; }
|
||||
|
Loading…
Reference in New Issue
Block a user