mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Format code using clang-format
This commit is contained in:
@ -7,7 +7,6 @@
|
||||
|
||||
#include "comic_db.h"
|
||||
|
||||
|
||||
class QAbstractListModel;
|
||||
class QItemSelectionModel;
|
||||
class QQuickWidget;
|
||||
@ -16,22 +15,21 @@ class YACReaderToolBarStretch;
|
||||
class YACReaderComicsSelectionHelper;
|
||||
class YACReaderComicInfoHelper;
|
||||
|
||||
|
||||
class GridComicsView : public ComicsView
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit GridComicsView(QWidget *parent = 0);
|
||||
virtual ~GridComicsView();
|
||||
void setToolBar(QToolBar * toolBar);
|
||||
void setToolBar(QToolBar *toolBar);
|
||||
void setModel(ComicModel *model);
|
||||
void setCurrentIndex(const QModelIndex &index);
|
||||
QModelIndex currentIndex();
|
||||
QItemSelectionModel * selectionModel();
|
||||
void scrollTo(const QModelIndex & mi, QAbstractItemView::ScrollHint hint );
|
||||
QItemSelectionModel *selectionModel();
|
||||
void scrollTo(const QModelIndex &mi, QAbstractItemView::ScrollHint hint);
|
||||
void toFullScreen();
|
||||
void toNormal();
|
||||
void updateConfig(QSettings * settings);
|
||||
void updateConfig(QSettings *settings);
|
||||
void enableFilterMode(bool enabled);
|
||||
QSize sizeHint();
|
||||
QByteArray getMimeDataFromSelection();
|
||||
@ -58,12 +56,12 @@ protected slots:
|
||||
//QML - dragManager
|
||||
void startDrag();
|
||||
//QML - dropManager
|
||||
bool canDropUrls(const QList<QUrl> & urls, Qt::DropAction action);
|
||||
bool canDropUrls(const QList<QUrl> &urls, Qt::DropAction action);
|
||||
bool canDropFormats(const QString &formats);
|
||||
void droppedFiles(const QList<QUrl> & urls, Qt::DropAction action);
|
||||
void droppedComicsForResortingAt(const QString & data, int index);
|
||||
void droppedFiles(const QList<QUrl> &urls, Qt::DropAction action);
|
||||
void droppedComicsForResortingAt(const QString &data, int index);
|
||||
//QML - context menu
|
||||
void requestedContextMenu(const QPoint & point);
|
||||
void requestedContextMenu(const QPoint &point);
|
||||
|
||||
void setCoversSize(int width);
|
||||
|
||||
@ -77,27 +75,26 @@ signals:
|
||||
void onScrollToOrigin();
|
||||
|
||||
private:
|
||||
QSettings * settings;
|
||||
QToolBar * toolbar;
|
||||
YACReaderToolBarStretch * toolBarStretch;
|
||||
QAction * toolBarStretchAction;
|
||||
QWidget * coverSizeSliderWidget;
|
||||
QSlider * coverSizeSlider;
|
||||
QAction * coverSizeSliderAction;
|
||||
QAction * showInfoAction;
|
||||
QAction * showInfoSeparatorAction;
|
||||
QSettings *settings;
|
||||
QToolBar *toolbar;
|
||||
YACReaderToolBarStretch *toolBarStretch;
|
||||
QAction *toolBarStretchAction;
|
||||
QWidget *coverSizeSliderWidget;
|
||||
QSlider *coverSizeSlider;
|
||||
QAction *coverSizeSliderAction;
|
||||
QAction *showInfoAction;
|
||||
QAction *showInfoSeparatorAction;
|
||||
|
||||
bool filterEnabled;
|
||||
|
||||
YACReaderComicsSelectionHelper * selectionHelper;
|
||||
YACReaderComicInfoHelper * comicInfoHelper;
|
||||
YACReaderComicsSelectionHelper *selectionHelper;
|
||||
YACReaderComicInfoHelper *comicInfoHelper;
|
||||
|
||||
ComicDB currentComic;
|
||||
|
||||
bool dummy;
|
||||
void closeEvent ( QCloseEvent * event );
|
||||
void closeEvent(QCloseEvent *event);
|
||||
void createCoverSizeSliderWidget();
|
||||
|
||||
};
|
||||
|
||||
#endif // GRID_COMICS_VIEW_H
|
||||
|
Reference in New Issue
Block a user