Q3270
A Qt-based 3270 Terminal Emulator
Loading...
Searching...
No Matches
SessionPreviewWidget.h
1/*
2 * Q3270 Terminal Emulator
3 *
4 * Copyright (c) 2020–2025 Andy Styles
5 * SPDX-License-Identifier: BSD-3-Clause
6 *
7 * This file is part of Q3270.
8 * See the LICENSE file in the project root for full license information.
9 */
10
11#ifndef SESSIONPREVIEWWIDGET_H
12#define SESSIONPREVIEWWIDGET_H
13
14#include <QWidget>
15#include "ui_SessionPreview.h"
16#include "Models/Session.h"
17#include <QIcon>
18
19class SessionPreviewWidget : public QWidget, private Ui::SessionPreviewWidget
20{
21 Q_OBJECT
22public:
23 explicit SessionPreviewWidget(QWidget *parent = nullptr);
24 void setSession(const Session &session);
25 void clear();
26
27private:
28
29 QIcon check;
30 QIcon uncheck;
31
32 QPixmap checked;
33 QPixmap unchecked;
34};
35#endif // SESSIONPREVIEWWIDGET_H
Definition SessionPreviewWidget.h:20
void setSession(const Session &session)
SessionPreviewWidget::setSession Sets the session to preview.
Definition SessionPreviewWidget.cpp:46
void clear()
SessionPreviewWidget::clear Clears the session preview.
Definition SessionPreviewWidget.cpp:61
Definition Session.h:21