mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-06 00:35:58 +01:00
3c4c9969cc
* toplevel sharing rev2 * nix: fix build * updated protocols Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>
28 lines
514 B
C++
28 lines
514 B
C++
#ifndef MAINPICKER_H
|
|
#define MAINPICKER_H
|
|
|
|
#include <QMainWindow>
|
|
#include <QObject>
|
|
#include <QEvent>
|
|
#include <unordered_map>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
namespace Ui { class MainPicker; }
|
|
QT_END_NAMESPACE
|
|
|
|
class MainPicker : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
MainPicker(QWidget *parent = nullptr);
|
|
~MainPicker();
|
|
|
|
void onMonitorButtonClicked(QObject* target, QEvent* event);
|
|
|
|
std::unordered_map<void*, int> windowIDs; // button -> id
|
|
|
|
private:
|
|
Ui::MainPicker *ui;
|
|
};
|
|
#endif // MAINPICKER_H
|