mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Silence warnings in simplewidgets.cpp
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ee7b9dcd09
commit
a670181ed2
1 changed files with 3 additions and 0 deletions
|
@ -67,6 +67,7 @@ double MinMaxAvgWidget::minimum() const
|
|||
|
||||
MinMaxAvgWidget::MinMaxAvgWidget(QWidget *parent) : d(new MinMaxAvgWidgetPrivate(this))
|
||||
{
|
||||
Q_UNUSED(parent)
|
||||
}
|
||||
|
||||
MinMaxAvgWidget::~MinMaxAvgWidget()
|
||||
|
@ -243,6 +244,7 @@ void ShiftTimesDialog::buttonClicked(QAbstractButton *button)
|
|||
|
||||
void ShiftTimesDialog::showEvent(QShowEvent *event)
|
||||
{
|
||||
Q_UNUSED(event)
|
||||
ui.timeEdit->setTime(QTime(0, 0, 0, 0));
|
||||
when = get_times(); //get time of first selected dive
|
||||
ui.currentTime->setText(get_dive_date_string(when));
|
||||
|
@ -475,6 +477,7 @@ void DateWidget::changeEvent(QEvent *event)
|
|||
#define DATEWIDGETWIDTH 80
|
||||
void DateWidget::paintEvent(QPaintEvent *event)
|
||||
{
|
||||
Q_UNUSED(event)
|
||||
static QPixmap pix = QPixmap(":/calendar").scaled(DATEWIDGETWIDTH, 64);
|
||||
|
||||
QPainter painter(this);
|
||||
|
|
Loading…
Add table
Reference in a new issue