Skip to content

Commit

Permalink
mapeditor#1173: Change from QWidget to QFrame and set border.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alturos committed Aug 7, 2016
1 parent b2a8979 commit 4c5a5ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/tiled/imagecolorpickerwidget.cpp
Expand Up @@ -29,10 +29,11 @@ using namespace Tiled;
using namespace Tiled::Internal;

ImageColorPickerWidget::ImageColorPickerWidget(QWidget *parent) :
QWidget(parent),
QFrame(parent),
mUi(new Ui::imageColorPickerWidget)
{
setWindowFlags(Qt::Popup);
setFrameStyle(QFrame::Plain | QFrame::Panel);
mUi->setupUi(this);
connect(mUi->imageArea, SIGNAL(mouseMoved(QMouseEvent*)), SLOT(onMouseMove(QMouseEvent*)));
connect(mUi->imageArea, SIGNAL(mousePressed(QMouseEvent*)), SLOT(onMousePress(QMouseEvent*)));
Expand Down
3 changes: 2 additions & 1 deletion src/tiled/imagecolorpickerwidget.h
Expand Up @@ -25,6 +25,7 @@
#include <QPixmap>
#include <QMouseEvent>
#include <QDialog>
#include <QFrame>

namespace Ui {
class imageColorPickerWidget;
Expand All @@ -36,7 +37,7 @@ namespace Internal {
/**
* A popup widget for selecting a colour from an image.
*/
class ImageColorPickerWidget : public QWidget
class ImageColorPickerWidget : public QFrame
{
Q_OBJECT

Expand Down

0 comments on commit 4c5a5ec

Please sign in to comment.