mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 17:32:15 -07:00
Lint.
This commit is contained in:
parent
3059637838
commit
7f22d48a5e
5 changed files with 11 additions and 10 deletions
|
|
@ -3,9 +3,9 @@
|
||||||
|
|
||||||
#include "printing_selector.h"
|
#include "printing_selector.h"
|
||||||
|
|
||||||
#include <QWidget>
|
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
|
#include <QWidget>
|
||||||
|
|
||||||
class PrintingSelectorCardSortingWidget : public QWidget
|
class PrintingSelectorCardSortingWidget : public QWidget
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,8 @@
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
|
|
||||||
PrintingSelectorViewOptionsToolbarWidget::PrintingSelectorViewOptionsToolbarWidget(
|
PrintingSelectorViewOptionsToolbarWidget::PrintingSelectorViewOptionsToolbarWidget(QWidget *_parent,
|
||||||
QWidget *_parent,
|
PrintingSelector *_printingSelector)
|
||||||
PrintingSelector *_printingSelector)
|
|
||||||
: QWidget(_parent), printingSelector(_printingSelector)
|
: QWidget(_parent), printingSelector(_printingSelector)
|
||||||
{
|
{
|
||||||
layout = new QVBoxLayout();
|
layout = new QVBoxLayout();
|
||||||
|
|
@ -94,7 +93,7 @@ QSize PrintingSelectorViewOptionsToolbarWidget::minimumSizeHint() const
|
||||||
return stackedWidget->currentWidget()->minimumSizeHint();
|
return stackedWidget->currentWidget()->minimumSizeHint();
|
||||||
}
|
}
|
||||||
|
|
||||||
PrintingSelectorViewOptionsWidget* PrintingSelectorViewOptionsToolbarWidget::getViewOptionsWidget() const
|
PrintingSelectorViewOptionsWidget *PrintingSelectorViewOptionsToolbarWidget::getViewOptionsWidget() const
|
||||||
{
|
{
|
||||||
return viewOptions;
|
return viewOptions;
|
||||||
}
|
}
|
||||||
|
|
@ -4,10 +4,10 @@
|
||||||
#include "printing_selector.h"
|
#include "printing_selector.h"
|
||||||
#include "printing_selector_view_options_widget.h"
|
#include "printing_selector_view_options_widget.h"
|
||||||
|
|
||||||
|
#include <QPushButton>
|
||||||
#include <QStackedWidget>
|
#include <QStackedWidget>
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
#include <QPushButton>
|
|
||||||
|
|
||||||
class PrintingSelectorViewOptionsToolbarWidget : public QWidget
|
class PrintingSelectorViewOptionsToolbarWidget : public QWidget
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -30,12 +30,11 @@ SetNameAndCollectorsNumberDisplayWidget::SetNameAndCollectorsNumberDisplayWidget
|
||||||
layout->addWidget(collectorsNumber);
|
layout->addWidget(collectorsNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void SetNameAndCollectorsNumberDisplayWidget::adjustFontSize(int scalePercentage)
|
void SetNameAndCollectorsNumberDisplayWidget::adjustFontSize(int scalePercentage)
|
||||||
{
|
{
|
||||||
// Define the base font size and the range
|
// Define the base font size and the range
|
||||||
const int minFontSize = 8; // Minimum font size
|
const int minFontSize = 8; // Minimum font size
|
||||||
const int maxFontSize = 32; // Maximum font size
|
const int maxFontSize = 32; // Maximum font size
|
||||||
const int basePercentage = 100; // Scale at 100%
|
const int basePercentage = 100; // Scale at 100%
|
||||||
|
|
||||||
// Calculate the new font size
|
// Calculate the new font size
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,10 @@ class SetNameAndCollectorsNumberDisplayWidget : public QWidget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
SetNameAndCollectorsNumberDisplayWidget(QWidget *parent, const QString &setName, const QString &collectorsNumber, QSlider *cardSizeSlider);
|
SetNameAndCollectorsNumberDisplayWidget(QWidget *parent,
|
||||||
|
const QString &setName,
|
||||||
|
const QString &collectorsNumber,
|
||||||
|
QSlider *cardSizeSlider);
|
||||||
void resizeEvent(QResizeEvent *event) override;
|
void resizeEvent(QResizeEvent *event) override;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue