Implement tool thickness via keyboard (#1882)

* Implement changing tool size by keyboard

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Fix very poor performance when changing thickness

* Make thickness get saved to config

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
This commit is contained in:
Haris Gušić
2021-09-11 19:57:43 +02:00
committed by GitHub
parent 23cf19308b
commit 9147d4ea03
5 changed files with 26 additions and 16 deletions

View File

@@ -14,7 +14,7 @@ NotifierBox::NotifierBox(QWidget* parent)
{
m_timer = new QTimer(this);
m_timer->setSingleShot(true);
m_timer->setInterval(1200);
m_timer->setInterval(600);
connect(m_timer, &QTimer::timeout, this, &NotifierBox::hide);
m_bgColor = ConfigHandler().uiMainColorValue();
m_foregroundColor =