Brief description of class still missing. More...
#include <PointageWidget.h>
Public Member Functions | |
PointageWidget (QWidget *parent=0) | |
~PointageWidget () | |
Protected Member Functions | |
void | moveEvent (QMoveEvent *) |
void | resizeEvent (QResizeEvent *) |
Brief description of class still missing.
Full description of class still missing
PointageWidget::PointageWidget | ( | QWidget * | parent = 0 | ) |
Description of constructor still missing
References QGpCoreTools::PackageInfo::shareDir(), QGpCoreTools::tr(), and TRACE.
: QWidget(parent) { TRACE; setupUi(this); const PackageInfo * info=PackageInfo::package("pointage"); suppliers->setText(info->shareDir()+"/pointage"+tr("/supplier_equivalences.txt")); connect(file1, SIGNAL(textChanged(QString)), this, SLOT(readFile1())); connect(fileType1, SIGNAL(currentIndexChanged(int)), this, SLOT(readFile1())); connect(file2, SIGNAL(textChanged(QString)), this, SLOT(readFile2())); connect(fileType2, SIGNAL(currentIndexChanged(int)), this, SLOT(readFile2())); connect(suppliers, SIGNAL(textChanged(QString)), this, SLOT(readFile1())); connect(suppliers, SIGNAL(textChanged(QString)), this, SLOT(readFile2())); connect(&_readers[0], SIGNAL(finished()), this, SLOT(fileReady())); connect(&_readers[1], SIGNAL(finished()), this, SLOT(fileReady())); // Save last current contract, getWidget does not work because combo box // is not yet initialized with the list of contracts, we have to wait // fileReady(). QSettings reg; _currentContract=reg.value("DialogOptions/pointage/groupBox_2/contract").toString(); Settings::getWidget(this, "pointage"); readFile1(); readFile2(); _saveFileOverwriteConfirmed=false; }
void PointageWidget::moveEvent | ( | QMoveEvent * | ) | [protected] |
{ Settings::setRect(this, "pointage"); }
void PointageWidget::resizeEvent | ( | QResizeEvent * | ) | [protected] |
{ Settings::setRect(this, "pointage"); }