source: src-qt4/pc-pkgmanager/dialogConfirm.cpp @ 26c7c82

releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since 26c7c82 was 26c7c82, checked in by Kris Moore <kris@…>, 9 months ago

Add new "Package cleanup" functionality to package manager. This
will run 'pkg autoremove' and do cleanup of packages no longer
needed.

This needs some testing still.

  • Property mode set to 100644
File size: 1.0 KB
Line 
1/****************************************************************************
2** ui.h extension file, included from the uic-generated form implementation.
3**
4** If you want to add, delete, or rename functions or slots, use
5** Qt Designer to update this file, preserving your code.
6**
7** You should not define a constructor or destructor in this file.
8** Instead, write your code in functions called init() and destroy().
9** These will automatically be called by the form's constructor and
10** destructor.
11*****************************************************************************/
12#include "dialogConfirm.h"
13#include "ui_dialogConfirm.h"
14
15void dialogConfirm::programInit(QString title)
16{
17  setWindowTitle(title);
18
19  connect( pushOK, SIGNAL(clicked()), this, SLOT(slotOK()) );
20  connect( pushCancel, SIGNAL(clicked()), this, SLOT(slotCancel()) );
21}
22
23void dialogConfirm::setInfoText(QString text)
24{
25  textConfirm->setText(text);
26}
27
28void dialogConfirm::slotCancel()
29{
30  emit cancel();
31  close();
32}
33
34void dialogConfirm::slotOK()
35{
36  emit ok();
37  close();
38}
Note: See TracBrowser for help on using the repository browser.