mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-22 22:53:55 -07:00
* move message_log_widget to game * move files * update headers * fix cmakelists * oracle fixes * split implementation out to cpp * fix recursive import * fix main file * format
This commit is contained in:
parent
f484c98152
commit
17dcaf9afa
337 changed files with 728 additions and 721 deletions
|
|
@ -0,0 +1,41 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue