closes #1: Favorite buttons has been extended with category buttons.

This commit is contained in:
2023-05-17 21:31:32 +02:00
parent 5b5f31f64d
commit 2597f79d2d
33 changed files with 596 additions and 106 deletions
+1 -7
View File
@@ -1,8 +1,6 @@
#include "shopsettingsform.h"
#include "ui_shopsettingsform.h"
#include <settingsservice.h>
#include <combodata.h>
#include <QFileDialog>
#include <QDragEnterEvent>
#include <QDebug>
@@ -146,7 +144,7 @@ bool ShopSettingsForm::saveRecord()
}
foreach (QString btnName, m_btnMap.keys()) {
if (m_btnMap[btnName] != NULL)
if (m_btnMap[btnName] != nullptr)
{
srvFav.save(m_btnMap[btnName]);
}
@@ -192,10 +190,6 @@ FavButtonStyle::FavButtonStyle()
{
}
FavButtonStyle::~FavButtonStyle()
{
}
void FavButtonStyle::drawItemText(QPainter *painter, const QRect &rect, int flags, const QPalette &pal, bool enabled, const QString &text, QPalette::ColorRole textRole) const
{
flags |= Qt::TextWordWrap;