Commit ba503e99 authored by Fabian Riethmayer's avatar Fabian Riethmayer

Added QtWidgets example code for a dialog.

parent 8748abc1
......@@ -69,3 +69,8 @@ Plasma components
~~~~~~~~~~~~~~~~~
- :plasmaapi:`Plasma ToolTip <ToolTip>`
Qt Widgets
~~~~~~~~~~
- :kwidgetsaddonsapi:`QtWidgets: KToolTipWidget <KToolTipWidget>`
......@@ -85,3 +85,27 @@ Appearance
along technical relations.
- Provide a title to each section.
- Follow the guidelines for :doc:`alignment </layout/alignment>`.
Code
----
Qt Widgets
~~~~~~~~~~
- :kwidgetsaddonsapi:`QtWidgets: KPageDialog <KPageDialog>`
.. code-block:: c++
UrlDialog::UrlDialog( QWidget *parent )
: KPageDialog( parent )
{
setFaceType( List );
QLabel *label = new QLabel( "Test Page" );
addPage( label, i18n( "My Test Page" ) );
label = new QLabel( "Second Test Page" );
KPageWidgetItem *page = new KPageWidgetItem( label, i18n( "My Second
Test Page" ) );
page->setHeader( i18n( "My header string" ) );
page->setIcon( QIcon::fromTheme( "file" ) );
addPage( page );
}
......@@ -126,3 +126,8 @@ Kirigami
}
...
}
Qt Widgets
~~~~~~~~~~
- :kwidgetsaddonsapi:`QtWidgets: KActionMenu <KActionMenu>`
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment