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
19
class
SessionPreviewWidget
:
public
QWidget,
private
Ui::SessionPreviewWidget
20
{
21
Q_OBJECT
22
public
:
23
explicit
SessionPreviewWidget
(QWidget *parent =
nullptr
);
24
void
setSession
(
const
Session
&session);
25
void
clear
();
26
27
private
:
28
29
QIcon check;
30
QIcon uncheck;
31
32
QPixmap checked;
33
QPixmap unchecked;
34
};
35
#endif
// SESSIONPREVIEWWIDGET_H
SessionPreviewWidget
Definition
SessionPreviewWidget.h:20
SessionPreviewWidget::setSession
void setSession(const Session &session)
SessionPreviewWidget::setSession Sets the session to preview.
Definition
SessionPreviewWidget.cpp:46
SessionPreviewWidget::clear
void clear()
SessionPreviewWidget::clear Clears the session preview.
Definition
SessionPreviewWidget.cpp:61
Session
Definition
Session.h:21
src
Sessions
SessionPreviewWidget.h
Generated by
1.9.8