From 68c3a455c44b22911b6d2f7f0dcde5acaf8017da Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Mon, 12 Sep 2022 00:44:53 -0400 Subject: mingui: Remove old widget implementation. also correct silly stuff that I forgot to change. --- mingui/mingui.hpp | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'mingui/mingui.hpp') diff --git a/mingui/mingui.hpp b/mingui/mingui.hpp index 4efb534..6e1f6c2 100644 --- a/mingui/mingui.hpp +++ b/mingui/mingui.hpp @@ -27,9 +27,7 @@ private: QHBoxLayout *l; QTextEdit *infopanel; QLabel *permamsg; - QWidget *imgcontainer; QStatusBar *sb; - QScrollArea *sa; QListView *lw; QList selhk; QStandardItemModel *im = nullptr; @@ -42,7 +40,6 @@ private: void mark_none(); void mark_view_update(bool update_msg = true); fs::path::string_type common_prefix(const std::vector &fns); - std::vector imgw; std::vector marks; std::unordered_set marked; std::vector current_set; @@ -62,21 +59,4 @@ Q_SIGNALS: void switch_group(std::size_t group); }; -class ImageWidget : public QWidget -{ - Q_OBJECT -private: - QString fn; - std::size_t idx; - QLabel *im; - QLabel *lb; -protected: - void mouseReleaseEvent(QMouseEvent *event) override; -public: - ImageWidget(fs::path f, fs::path::string_type dispfn, std::size_t _idx, int max_width, int max_height, QWidget *par); - void set_marked(bool marked); -Q_SIGNALS: - void clicked(); -}; - #endif -- cgit v1.2.3