2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2009-07-20 10:17:30 +02:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2009-07-15 12:42:09 +02:00
|
|
|
|
|
|
|
|
#include "utils_global.h"
|
|
|
|
|
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <QWidget>
|
2009-07-15 12:42:09 +02:00
|
|
|
|
|
|
|
|
namespace Utils {
|
|
|
|
|
|
|
|
|
|
class QTCREATOR_UTILS_EXPORT StyledBar : public QWidget
|
|
|
|
|
{
|
2010-03-31 10:13:05 +02:00
|
|
|
Q_OBJECT
|
2009-07-15 12:42:09 +02:00
|
|
|
public:
|
2018-05-07 17:33:02 +02:00
|
|
|
StyledBar(QWidget *parent = nullptr);
|
2009-07-15 16:23:07 +02:00
|
|
|
void setSingleRow(bool singleRow);
|
|
|
|
|
bool isSingleRow() const;
|
2010-02-19 09:54:29 +01:00
|
|
|
|
|
|
|
|
void setLightColored(bool lightColored);
|
|
|
|
|
bool isLightColored() const;
|
|
|
|
|
|
2009-07-15 12:42:09 +02:00
|
|
|
protected:
|
2018-05-07 15:07:21 +02:00
|
|
|
void paintEvent(QPaintEvent *event) override;
|
2009-07-15 12:42:09 +02:00
|
|
|
};
|
|
|
|
|
|
2009-07-16 15:57:59 +02:00
|
|
|
class QTCREATOR_UTILS_EXPORT StyledSeparator : public QWidget
|
|
|
|
|
{
|
2010-03-31 10:13:05 +02:00
|
|
|
Q_OBJECT
|
2009-07-16 15:57:59 +02:00
|
|
|
public:
|
2018-05-07 17:33:02 +02:00
|
|
|
StyledSeparator(QWidget *parent = nullptr);
|
2009-07-16 15:57:59 +02:00
|
|
|
protected:
|
2018-05-07 15:07:21 +02:00
|
|
|
void paintEvent(QPaintEvent *event) override;
|
2009-07-16 15:57:59 +02:00
|
|
|
};
|
|
|
|
|
|
2009-07-15 12:42:09 +02:00
|
|
|
} // Utils
|