mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -07:00
* Sort *every* file into a doxygen group. Took 7 hours 9 minutes Took 18 seconds Took 2 minutes * Lint some ingroup definitions. Took 10 minutes Took 2 seconds * Just include the groups in the Doxyfile in this commit. Took 3 minutes * Update some group comments so they link! Took 14 minutes --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
/**
|
|
* @file overlap_widget.h
|
|
* @ingroup UI
|
|
* @brief TODO: Document this.
|
|
*/
|
|
|
|
#ifndef OVERLAP_WIDGET_H
|
|
#define OVERLAP_WIDGET_H
|
|
|
|
#include "../../../layouts/overlap_layout.h"
|
|
|
|
#include <QWidget>
|
|
|
|
class OverlapWidget final : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
OverlapWidget(QWidget *parent,
|
|
int overlapPercentage,
|
|
int maxColumns,
|
|
int maxRows,
|
|
Qt::Orientation direction,
|
|
bool adjustOnResize = false);
|
|
void addWidget(QWidget *widgetToAdd) const;
|
|
void insertWidgetAtIndex(QWidget *toInsert, int index);
|
|
void removeWidget(QWidget *widgetToRemove) const;
|
|
void clearLayout();
|
|
void adjustMaxColumnsAndRows();
|
|
|
|
public slots:
|
|
void maxOverlapItemsChanged(int newValue);
|
|
void overlapDirectionChanged(const QString &newDirection);
|
|
|
|
protected:
|
|
void resizeEvent(QResizeEvent *event) override;
|
|
|
|
private:
|
|
OverlapLayout *overlapLayout;
|
|
int overlapPercentage;
|
|
int maxColumns;
|
|
int maxRows;
|
|
Qt::Orientation direction;
|
|
bool adjustOnResize = false;
|
|
};
|
|
|
|
#endif // OVERLAP_WIDGET_H
|