mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-10-31 23:57:10 -04:00
0d8772f25a
Make WSPRnet.org spot uploads tolerant of network issues, spots still get discarded for any period that has problems but now uploading resumes on the next period. Ensure that decoded text starts with correct font by not using the base class append method directly. Fixed a major memory leak in the WSPRNet class which was not freeing processed request reply objects. Added some helpful debug prints in WSPRnet.org spot processing. Also tidied up a number of class implementations that were not including he MOC generated code. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5560 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
46 lines
966 B
C++
46 lines
966 B
C++
#include "messageaveraging.h"
|
|
#include <QSettings>
|
|
#include "ui_messageaveraging.h"
|
|
#include "commons.h"
|
|
#include "moc_messageaveraging.cpp"
|
|
|
|
MessageAveraging::MessageAveraging(QSettings * settings, QWidget *parent) :
|
|
QWidget(parent),
|
|
settings_ {settings},
|
|
ui(new Ui::MessageAveraging)
|
|
{
|
|
ui->setupUi(this);
|
|
read_settings ();
|
|
}
|
|
|
|
MessageAveraging::~MessageAveraging()
|
|
{
|
|
if (isVisible ()) write_settings ();
|
|
delete ui;
|
|
}
|
|
|
|
void MessageAveraging::closeEvent (QCloseEvent * e)
|
|
{
|
|
write_settings ();
|
|
QWidget::closeEvent (e);
|
|
}
|
|
|
|
void MessageAveraging::read_settings ()
|
|
{
|
|
settings_->beginGroup ("MessageAveraging");
|
|
move (settings_->value ("window/pos", pos ()).toPoint ());
|
|
settings_->endGroup ();
|
|
}
|
|
|
|
void MessageAveraging::write_settings ()
|
|
{
|
|
settings_->beginGroup ("MessageAveraging");
|
|
settings_->setValue ("window/pos", pos ());
|
|
settings_->endGroup ();
|
|
}
|
|
|
|
void MessageAveraging::displayAvg(QString t)
|
|
{
|
|
ui->msgAvgTextBrowser->setText(t);
|
|
}
|