2013-05-08 01:36:34 +00:00
|
|
|
#ifndef GROUPBOX_HPP
|
|
|
|
#define GROUPBOX_HPP
|
|
|
|
|
|
|
|
#include <QGroupBox>
|
|
|
|
|
2013-05-11 10:55:46 +00:00
|
|
|
namespace CSVSettings
|
2013-05-08 01:36:34 +00:00
|
|
|
{
|
2013-06-20 23:06:25 +00:00
|
|
|
/// Custom implementation of QGroupBox to be used with block classes
|
2013-05-08 01:36:34 +00:00
|
|
|
class GroupBox : public QGroupBox
|
|
|
|
{
|
|
|
|
static const QString INVISIBLE_BOX_STYLE;
|
|
|
|
QString VISIBLE_BOX_STYLE; //not a const...
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit GroupBox (QWidget *parent = 0);
|
|
|
|
explicit GroupBox (bool isVisible, QWidget *parent = 0);
|
|
|
|
|
|
|
|
void setTitle (const QString &title);
|
|
|
|
void setBorderVisibility (bool value);
|
|
|
|
bool borderVisibile() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void setMinimumWidth();
|
|
|
|
void initBox(bool isVisible = true);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // GROUPBOX_HPP
|