This repository has been archived on 2022-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
modern-linbo-gui/sources/legacy/linboCounterImpl.cc

81 lines
1.5 KiB
C++
Raw Permalink Normal View History

#include "linboCounterImpl.hh"
#include <qapplication.h>
#include <unistd.h>
#include <QtGui>
linboCounterImpl::linboCounterImpl( QWidget* parent ) : linboDialog()
{
Ui_linboCounter::setupUi((QDialog*)this);
Qt::WindowFlags flags;
flags = Qt::Dialog | Qt::WindowStaysOnTopHint | Qt::WindowTitleHint;
setWindowFlags( flags );
if( parent )
myParent = parent;
// open in the upper left of our screen
int xpos= 10;
int ypos= 10;
this->move(xpos,ypos);
this->setFixedSize( this->width(), this->height() );
connect( logoutButton, SIGNAL(released()), this, SLOT(hide()) );
}
linboCounterImpl::~linboCounterImpl()
{
// nothing to do
}
void linboCounterImpl::precmd() {
// nothing to do
}
void linboCounterImpl::postcmd() {
// nothing to do
}
void linboCounterImpl::readFromStdout()
{
// nothing to do
}
void linboCounterImpl::setMainApp( QWidget* newMainApp ) {
if ( newMainApp ) {
myMainApp = newMainApp;
}
}
void linboCounterImpl::readFromStderr()
{
// nothing to do
}
QStringList linboCounterImpl::getCommand() {
return myCommand;
}
void linboCounterImpl::setCommand(const QStringList& arglist)
{
// nothing to do
myCommand = arglist;
}
void linboCounterImpl::processFinished( int retval,
QProcess::ExitStatus status) {
2020-11-30 13:42:49 +01:00
Q_UNUSED(retval)
Q_UNUSED(status)
// nothing to do
}
void linboCounterImpl::closeEvent(QCloseEvent *event) {
event->accept();
logoutButton->click();
}