mirror of
https://github.com/status-im/snorenotify.git
synced 2025-02-04 04:33:45 +00:00
changed size
This commit is contained in:
parent
bb25700094
commit
45b0fa7708
@ -37,7 +37,7 @@ NotifyWidget::NotifyWidget(int pos,QWidget *parent) :
|
|||||||
TomahawkUtils::DpiScaler::setFontSize(this->ui->titel->fontInfo().pointSize());
|
TomahawkUtils::DpiScaler::setFontSize(this->ui->titel->fontInfo().pointSize());
|
||||||
m_scaler = new TomahawkUtils::DpiScaler(this);
|
m_scaler = new TomahawkUtils::DpiScaler(this);
|
||||||
ui->closeButton->setMaximumWidth(ui->closeButton->height());
|
ui->closeButton->setMaximumWidth(ui->closeButton->height());
|
||||||
QSize size = m_scaler->scaled(350, 90);
|
QSize size = m_scaler->scaled(300, 80);
|
||||||
setMaximumSize(size);
|
setMaximumSize(size);
|
||||||
setMinimumSize(size);
|
setMinimumSize(size);
|
||||||
resize(size);
|
resize(size);
|
||||||
@ -59,6 +59,7 @@ void NotifyWidget::display(const Notification ¬ification)
|
|||||||
m_moveTimer->setInterval(3);
|
m_moveTimer->setInterval(3);
|
||||||
connect( m_moveTimer, SIGNAL(timeout()), this, SLOT(slotMove()));
|
connect( m_moveTimer, SIGNAL(timeout()), this, SLOT(slotMove()));
|
||||||
m_moveTimer->start();
|
m_moveTimer->start();
|
||||||
|
snoreDebug( SNORE_DEBUG ) << size();
|
||||||
}
|
}
|
||||||
|
|
||||||
void NotifyWidget::update(const Notification ¬ification)
|
void NotifyWidget::update(const Notification ¬ification)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user