kylin-nm/plugins/netconnect/deviceframe.h

37 lines
696 B
C
Raw Permalink Normal View History

2022-06-02 16:27:45 +08:00
#ifndef DEVICEFRAME_H
#define DEVICEFRAME_H
#include <QObject>
#include <QWidget>
#include <QPushButton>
#include <QHBoxLayout>
#include <QLabel>
#include <QTimer>
#include <QDebug>
#include "../component/DrownLabel/drownlabel.h"
2022-06-17 18:48:59 +08:00
#include "kwidget.h"
#include "kswitchbutton.h"
using namespace kdk;
2022-06-02 16:27:45 +08:00
class DeviceFrame : public QFrame
{
public:
DeviceFrame(QString devName, QWidget *parent = nullptr);
~DeviceFrame();
public:
QLabel * deviceLabel = nullptr;
2022-06-17 18:48:59 +08:00
KSwitchButton * deviceSwitch = nullptr;
2022-06-02 16:27:45 +08:00
DrownLabel *dropDownLabel = nullptr;
protected:
void paintEvent(QPaintEvent *event);
private:
bool isDropDown = false;
int frameSize;
};
#endif // DEVICEFRAME_H