6#include "QskMessageWindow.h"
7#include "QskTextLabel.h"
8#include "QskTextOptions.h"
17 setObjectName( QStringLiteral(
"QskMessageWindowTextLabel" ) );
18 initSizePolicy( QskSizePolicy::Preferred, QskSizePolicy::Preferred );
20 setAlignment( Qt::AlignLeft | Qt::AlignTop );
21 setWrapMode( QskTextOptions::WordWrap );
23 connect(
this, &QskTextLabel::textChanged,
24 box, &QskMessageWindow::textChanged );
26 connect(
this, &QskTextLabel::textOptionsChanged,
27 box, &QskMessageWindow::textOptionsChanged );
32class QskMessageWindow::PrivateData
38QskMessageWindow::QskMessageWindow( QWindow* parent )
40 , m_data( new PrivateData() )
42 setFlags( Qt::Dialog | Qt::WindowTitleHint |
43 Qt::WindowCloseButtonHint | Qt::WindowSystemMenuHint );
45 m_data->textLabel =
new TextLabel(
this );
46 setDialogContentItem( m_data->textLabel );
49QskMessageWindow::~QskMessageWindow()
53void QskMessageWindow::setText(
const QString& text )
55 m_data->textLabel->setText( text );
58QString QskMessageWindow::text()
const
60 return m_data->textLabel->text();
63void QskMessageWindow::setTextOptions(
const QskTextOptions& options )
65 m_data->textLabel->setTextOptions( options );
70 return m_data->textLabel->textOptions();
73#include "moc_QskMessageWindow.cpp"
void initSizePolicy(QskSizePolicy::Policy, QskSizePolicy::Policy)