Skip to content

Commit

Permalink
GUI: Panel preview empty code
Browse files Browse the repository at this point in the history
  • Loading branch information
fdde authored and DrMcCoy committed Dec 29, 2017
1 parent d0d3c0c commit d6265e7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 54 deletions.
17 changes: 14 additions & 3 deletions src/gui/panelpreviewempty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,20 @@ namespace GUI {

W_OBJECT_IMPL(PanelPreviewEmpty)

PanelPreviewEmpty::PanelPreviewEmpty(QWidget *UNUSED(parent))
{
_ui.setupUi(this);
PanelPreviewEmpty::PanelPreviewEmpty(QWidget *UNUSED(parent)) {
this->setObjectName(QStringLiteral("PanelPreviewEmpty"));
this->resize(400, 300);
_boxLayoutHorizontal = new QHBoxLayout(this);
_boxLayoutHorizontal->setObjectName(QStringLiteral("_boxLayoutHorizontal"));
_boxLayoutHorizontal->setContentsMargins(0, 0, 0, 0);
_label = new QLabel(this);
_label->setObjectName(QStringLiteral("_label"));
_label->setEnabled(false);
_label->setAlignment(Qt::AlignCenter);

_boxLayoutHorizontal->addWidget(_label);

_label->setText(tr("[Nothing to preview.]"));
}

} // End of namespace GUI
9 changes: 4 additions & 5 deletions src/gui/panelpreviewempty.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,20 @@

#include <QFrame>
#include <QHBoxLayout>
#include <QLabel>
#include <QSpacerItem>
#include <QWidget>

#include "verdigris/wobjectdefs.h"

#include "ui/ui_previewempty.h"

namespace GUI {

class PanelPreviewEmpty : public QFrame
{
class PanelPreviewEmpty : public QFrame {
W_OBJECT(PanelPreviewEmpty)

private:
Ui::PreviewEmpty _ui;
QHBoxLayout *_boxLayoutHorizontal;
QLabel *_label;

public:
PanelPreviewEmpty(QWidget *parent = 0);
Expand Down
46 changes: 0 additions & 46 deletions ui/previewempty.ui

This file was deleted.

0 comments on commit d6265e7

Please sign in to comment.