]> Shamusworld >> Repos - architektonas/blobdiff - src/layeritemwidget.h
Fix for incorrect return values in TopLeft() and BottomRight().
[architektonas] / src / layeritemwidget.h
index 0ee11191c4d0ac5026a73c3e25bec8aaaff441b7..7c8a95979aae3bd12c6b94d8c5912c23d3a2b61d 100644 (file)
@@ -1,20 +1,29 @@
 #ifndef __LAYERITEMWIDGET_H__
 #define __LAYERITEMWIDGET_H__
 
-#include <QtGui>
+#include <QtWidgets>
 
 class LayerItemWidget: public QWidget
 {
        Q_OBJECT
 
        public:
-               LayerItemWidget(QString, bool invisible = false, bool locked = false);
+               LayerItemWidget(QString, bool i = false, bool l = false, QListWidgetItem * p = NULL);
                ~LayerItemWidget();
 
+       private slots:
+               void HandleHideToggle(bool);
+               void HandleLockToggle(bool);
+
+       signals:
+               void HideToggled(QListWidgetItem *, bool);
+               void LockToggled(QListWidgetItem *, bool);
+
        public:
                QLabel * name;
-               QPushButton * visibility;
-               QPushButton * editibility;
+               QPushButton * invisible;
+               QPushButton * locked;
+               QListWidgetItem * parent;
 };
 
 #endif // __LAYERITEMWIDGET_H__