/* * © Copyright 2014 – Urheberrechtshinweis * Alle Rechte vorbehalten / All Rights Reserved * * Programmcode ist urheberrechtlich geschuetzt. * Das Urheberrecht liegt, soweit nicht ausdruecklich anders gekennzeichnet, bei Frank Ebner. * Keine Verwendung ohne explizite Genehmigung. * (vgl. § 106 ff UrhG / § 97 UrhG) */ #include "ActionWidget.h" #include #include ActionWidget::ActionWidget(QWidget *parent) : QWidget(parent) { QHBoxLayout* lay = new QHBoxLayout(this); QPushButton* btnNew = new QPushButton("new"); lay->addWidget(btnNew); QPushButton* btnLoad = new QPushButton("load"); lay->addWidget(btnLoad); QPushButton* btnSave = new QPushButton("save"); lay->addWidget(btnSave); // events connect(btnNew, SIGNAL(clicked(bool)), this, SIGNAL(onNew())); connect(btnLoad, SIGNAL(clicked(bool)), this, SIGNAL(onLoad())); connect(btnSave, SIGNAL(clicked(bool)), this, SIGNAL(onSave())); }