mirror of
https://github.com/opentx/opentx.git
synced 2025-07-14 03:49:52 +03:00
Refactoring
This commit is contained in:
parent
62b64862d8
commit
38a639cef6
102 changed files with 3055 additions and 2978 deletions
|
@ -1,6 +1,7 @@
|
|||
#include "comparedialog.h"
|
||||
#include "ui_comparedialog.h"
|
||||
#include "helpers.h"
|
||||
#include "helpers_html.h"
|
||||
#include "eeprominterface.h"
|
||||
#include <QtGui>
|
||||
#include <QImage>
|
||||
|
@ -165,37 +166,6 @@ CompareDialog::~CompareDialog()
|
|||
delete ui;
|
||||
}
|
||||
|
||||
QString CompareDialog::doTC(const QString s, const QString color="", bool bold=false)
|
||||
{
|
||||
QString str = s;
|
||||
if(bold) str = "<b>" + str + "</b>";
|
||||
if(!color.isEmpty()) str = "<font color=" + color + ">" + str + "</font>";
|
||||
return "<td align=center>" + str + "</td>";
|
||||
}
|
||||
|
||||
QString CompareDialog::doTR(const QString s, const QString color="", bool bold=false)
|
||||
{
|
||||
QString str = s;
|
||||
if(bold) str = "<b>" + str + "</b>";
|
||||
if(!color.isEmpty()) str = "<font color=" + color + ">" + str + "</font>";
|
||||
return "<td align=right>" + str + "</td>";
|
||||
}
|
||||
|
||||
QString CompareDialog::doTL(const QString s, const QString color="", bool bold=false)
|
||||
{
|
||||
QString str = s;
|
||||
if(bold) str = "<b>" + str + "</b>";
|
||||
if(!color.isEmpty()) str = "<font color=" + color + ">" + str + "</font>";
|
||||
return "<td align=left>" + str + "</td>";
|
||||
}
|
||||
|
||||
QString CompareDialog::fv(const QString name, const QString value, const QString color="green")
|
||||
{
|
||||
return "<b>" + name + ": </b><font color=" +color + ">" + value + "</font><br>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
int CompareDialog::ModelHasExpo(ExpoData * ExpoArray, ExpoData expo, bool * expoused)
|
||||
{
|
||||
for (int i=0; i< C9X_MAX_EXPOS; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue