Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:deneseme
sampledriver
calcwindow.cpp
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File calcwindow.cpp of Package sampledriver
#include "calcwindow.h" #include <QAction> #include <QMenuBar> #include <QToolBar> CalcWindow::CalcWindow() { mp_calc = new MyCalc; setCentralWidget(mp_calc); makeMenu(); makeToolbar(); } void CalcWindow::makeMenu() { QAction *clear = menuBar()->addAction(tr("Clear")); connect(clear, SIGNAL(triggered()), mp_calc, SLOT(Clear())); } void CalcWindow::makeToolbar() { QToolBar *toolbar = new QToolBar; QAction *clear = new QAction(tr("Clear"), this); connect(clear, SIGNAL(triggered()), mp_calc, SLOT(Clear())); toolbar->addAction(clear); this->addToolBar(toolbar); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor