diff options
| author | Crystalwarrior <varsash@gmail.com> | 2019-09-20 15:54:45 +0300 |
|---|---|---|
| committer | Crystalwarrior <varsash@gmail.com> | 2019-09-20 15:54:45 +0300 |
| commit | d3f23708c43bc132c322b778b2aa8d31a68d1c0c (patch) | |
| tree | ecdc8ee551cb0614ad0285880eb7e14312df077a /src/aocharbutton.cpp | |
| parent | 3899dbe0bd82875214ebd676130692120f89a412 (diff) | |
Revert buttons using setIcon and use a better stylesheet method instead
Fix evidence buttons and emote buttons being hardcoded size
Diffstat (limited to 'src/aocharbutton.cpp')
| -rw-r--r-- | src/aocharbutton.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/aocharbutton.cpp b/src/aocharbutton.cpp index d571b953..6acad70b 100644 --- a/src/aocharbutton.cpp +++ b/src/aocharbutton.cpp @@ -70,10 +70,14 @@ void AOCharButton::set_image(QString p_character) this->setText(""); if (file_exists(image_path)) - this->setStyleSheet("border-image:url(\"" + image_path + "\")"); + { + this->setStyleSheet("QPushButton { border-image: url(\"" + image_path + "\") 0 0 0 0 stretch stretch; }" + "QToolTip { background-image: url(); color: #000000; background-color: #ffffff; border: 0px; }"); + } else { - this->setStyleSheet("border-image:url()"); + this->setStyleSheet("QPushButton { border-image: url(); }" + "QToolTip { background-image: url(); color: #000000; background-color: #ffffff; border: 0px; }"); this->setText(p_character); } } |
