mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 17:02: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 <QWidget>
|
||||
#include <QComboBox>
|
||||
#include <QPushButton>
|
||||
#include <QWidget>
|
||||
|
||||
class PrintingSelectorCardSortingWidget : public QWidget
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,9 +4,8 @@
|
|||
#include <QLabel>
|
||||
#include <QPushButton>
|
||||
|
||||
PrintingSelectorViewOptionsToolbarWidget::PrintingSelectorViewOptionsToolbarWidget(
|
||||
QWidget *_parent,
|
||||
PrintingSelector *_printingSelector)
|
||||
PrintingSelectorViewOptionsToolbarWidget::PrintingSelectorViewOptionsToolbarWidget(QWidget *_parent,
|
||||
PrintingSelector *_printingSelector)
|
||||
: QWidget(_parent), printingSelector(_printingSelector)
|
||||
{
|
||||
layout = new QVBoxLayout();
|
||||
|
|
@ -94,7 +93,7 @@ QSize PrintingSelectorViewOptionsToolbarWidget::minimumSizeHint() const
|
|||
return stackedWidget->currentWidget()->minimumSizeHint();
|
||||
}
|
||||
|
||||
PrintingSelectorViewOptionsWidget* PrintingSelectorViewOptionsToolbarWidget::getViewOptionsWidget() const
|
||||
PrintingSelectorViewOptionsWidget *PrintingSelectorViewOptionsToolbarWidget::getViewOptionsWidget() const
|
||||
{
|
||||
return viewOptions;
|
||||
}
|
||||
|
|
@ -4,10 +4,10 @@
|
|||
#include "printing_selector.h"
|
||||
#include "printing_selector_view_options_widget.h"
|
||||
|
||||
#include <QPushButton>
|
||||
#include <QStackedWidget>
|
||||
#include <QVBoxLayout>
|
||||
#include <QWidget>
|
||||
#include <QPushButton>
|
||||
|
||||
class PrintingSelectorViewOptionsToolbarWidget : public QWidget
|
||||
{
|
||||
|
|
|
|||
|
|
@ -30,12 +30,11 @@ SetNameAndCollectorsNumberDisplayWidget::SetNameAndCollectorsNumberDisplayWidget
|
|||
layout->addWidget(collectorsNumber);
|
||||
}
|
||||
|
||||
|
||||
void SetNameAndCollectorsNumberDisplayWidget::adjustFontSize(int scalePercentage)
|
||||
{
|
||||
// Define the base font size and the range
|
||||
const int minFontSize = 8; // Minimum font size
|
||||
const int maxFontSize = 32; // Maximum font size
|
||||
const int minFontSize = 8; // Minimum font size
|
||||
const int maxFontSize = 32; // Maximum font size
|
||||
const int basePercentage = 100; // Scale at 100%
|
||||
|
||||
// Calculate the new font size
|
||||
|
|
|
|||
|
|
@ -10,7 +10,10 @@ class SetNameAndCollectorsNumberDisplayWidget : public QWidget
|
|||
{
|
||||
Q_OBJECT
|
||||
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;
|
||||
|
||||
public slots:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue