mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-23 20:22:58 +03:00
Typos have been fixed
This commit is contained in:
parent
1377a8b252
commit
9f00119fbc
@ -11,7 +11,7 @@ DesignerSettingManager::~DesignerSettingManager()
|
||||
delete m_setting;
|
||||
}
|
||||
|
||||
void DesignerSettingManager::getAviableLanguages(QList<QLocale::Language>* languages)
|
||||
void DesignerSettingManager::getAvailableLanguages(QList<QLocale::Language>* languages)
|
||||
{
|
||||
languages->append(QLocale::Russian);
|
||||
languages->append(QLocale::English);
|
||||
@ -33,7 +33,7 @@ QLocale::Language DesignerSettingManager::getCurrentDefaultLanguage()
|
||||
}
|
||||
}
|
||||
|
||||
void DesignerSettingManager::currentDefaulLanguageChanged(QLocale::Language language)
|
||||
void DesignerSettingManager::currentDefaultLanguageChanged(QLocale::Language language)
|
||||
{
|
||||
QMessageBox::information(0, tr("Warning") , tr("The language will change after the application is restarted"));
|
||||
m_setting->beginGroup("ReportDesigner");
|
||||
|
@ -14,9 +14,9 @@ public:
|
||||
~DesignerSettingManager();
|
||||
void setApplicationInstance(QApplication* application);
|
||||
public slots:
|
||||
void getAviableLanguages(QList<QLocale::Language>* languages);
|
||||
void getAvailableLanguages(QList<QLocale::Language>* languages);
|
||||
QLocale::Language getCurrentDefaultLanguage();
|
||||
void currentDefaulLanguageChanged(QLocale::Language language);
|
||||
void currentDefaultLanguageChanged(QLocale::Language language);
|
||||
private:
|
||||
QApplication* m_app;
|
||||
QSettings* m_setting;
|
||||
|
@ -38,14 +38,14 @@ int main(int argc, char *argv[])
|
||||
if (a.arguments().count()>1){
|
||||
report.loadFromFile(a.arguments().at(1));
|
||||
}
|
||||
QObject::connect(&report, SIGNAL(getAviableLanguages(QList<QLocale::Language>*)),
|
||||
&manager, SLOT(getAviableLanguages(QList<QLocale::Language>*)));
|
||||
QObject::connect(&report, SIGNAL(getAvailableLanguages(QList<QLocale::Language>*)),
|
||||
&manager, SLOT(getAvailableLanguages(QList<QLocale::Language>*)));
|
||||
|
||||
QObject::connect(&report, SIGNAL(getCurrentDefaultLanguage()),
|
||||
&manager, SLOT(getCurrentDefaultLanguage()));
|
||||
|
||||
QObject::connect(&report, SIGNAL(currentDefaulLanguageChanged(QLocale::Language)),
|
||||
&manager, SLOT(currentDefaulLanguageChanged(QLocale::Language)));
|
||||
QObject::connect(&report, SIGNAL(currentDefaultLanguageChanged(QLocale::Language)),
|
||||
&manager, SLOT(currentDefaultLanguageChanged(QLocale::Language)));
|
||||
|
||||
report.designReport();
|
||||
return a.exec();
|
||||
|
@ -191,8 +191,8 @@ public:
|
||||
void setPrintVisible(bool value);
|
||||
bool printIsVisible();
|
||||
bool isBusy();
|
||||
void setPassPharse(QString& passPharse);
|
||||
QList<QLocale::Language> aviableLanguages();
|
||||
void setPassPhrase(QString& passPhrase);
|
||||
QList<QLocale::Language> availableLanguages();
|
||||
bool setReportLanguage(QLocale::Language language);
|
||||
Qt::LayoutDirection previewLayoutDirection();
|
||||
void setPreviewLayoutDirection(const Qt::LayoutDirection& previewLayoutDirection);
|
||||
@ -220,8 +220,8 @@ signals:
|
||||
void loadFinished();
|
||||
void printedToPDF(QString fileName);
|
||||
|
||||
void getAviableLanguages(QList<QLocale::Language>* languages);
|
||||
void currentDefaulLanguageChanged(QLocale::Language);
|
||||
void getAvailableLanguages(QList<QLocale::Language>* languages);
|
||||
void currentDefaultLanguageChanged(QLocale::Language);
|
||||
QLocale::Language getCurrentDefaultLanguage();
|
||||
|
||||
void externalPaint(const QString& objectName, QPainter* painter, const QStyleOptionGraphicsItem*);
|
||||
|
@ -1080,7 +1080,7 @@ QList<QLocale::Language> ReportEnginePrivate::designerLanguages()
|
||||
{
|
||||
|
||||
QList<QLocale::Language> result;
|
||||
emit getAviableLanguages(&result);
|
||||
emit getAvailableLanguages(&result);
|
||||
return result;
|
||||
}
|
||||
|
||||
@ -1093,7 +1093,7 @@ QLocale::Language ReportEnginePrivate::currentDesignerLanguage()
|
||||
void ReportEnginePrivate::setCurrentDesignerLanguage(QLocale::Language language)
|
||||
{
|
||||
m_currentDesignerLanguage = language;
|
||||
emit currentDefaulLanguageChanged(language);
|
||||
emit currentDefaultLanguageChanged(language);
|
||||
}
|
||||
|
||||
QString ReportEnginePrivate::styleSheet() const
|
||||
@ -1387,10 +1387,10 @@ ReportEngine::ReportEngine(QObject *parent)
|
||||
connect(d, SIGNAL(cleared()), this, SIGNAL(cleared()));
|
||||
connect(d, SIGNAL(printedToPDF(QString)), this, SIGNAL(printedToPDF(QString)));
|
||||
|
||||
connect(d, SIGNAL(getAviableLanguages(QList<QLocale::Language>*)),
|
||||
this, SIGNAL(getAviableLanguages(QList<QLocale::Language>*)));
|
||||
connect(d, SIGNAL(currentDefaulLanguageChanged(QLocale::Language)),
|
||||
this, SIGNAL(currentDefaulLanguageChanged(QLocale::Language)));
|
||||
connect(d, SIGNAL(getAvailableLanguages(QList<QLocale::Language>*)),
|
||||
this, SIGNAL(getAvailableLanguages(QList<QLocale::Language>*)));
|
||||
connect(d, SIGNAL(currentDefaultLanguageChanged(QLocale::Language)),
|
||||
this, SIGNAL(currentDefaultLanguageChanged(QLocale::Language)));
|
||||
connect(d, SIGNAL(getCurrentDefaultLanguage()),
|
||||
this, SIGNAL(getCurrentDefaultLanguage()));
|
||||
|
||||
@ -1548,13 +1548,13 @@ bool ReportEngine::isBusy()
|
||||
return d->isBusy();
|
||||
}
|
||||
|
||||
void ReportEngine::setPassPharse(QString &passPharse)
|
||||
void ReportEngine::setPassPhrase(QString &passPhrase)
|
||||
{
|
||||
Q_D(ReportEngine);
|
||||
d->setPassPhrase(passPharse);
|
||||
d->setPassPhrase(passPhrase);
|
||||
}
|
||||
|
||||
QList<QLocale::Language> ReportEngine::aviableLanguages()
|
||||
QList<QLocale::Language> ReportEngine::availableLanguages()
|
||||
{
|
||||
Q_D(ReportEngine);
|
||||
return d->aviableLanguages();
|
||||
|
@ -191,8 +191,8 @@ public:
|
||||
void setPrintVisible(bool value);
|
||||
bool printIsVisible();
|
||||
bool isBusy();
|
||||
void setPassPharse(QString& passPharse);
|
||||
QList<QLocale::Language> aviableLanguages();
|
||||
void setPassPhrase(QString& passPhrase);
|
||||
QList<QLocale::Language> availableLanguages();
|
||||
bool setReportLanguage(QLocale::Language language);
|
||||
Qt::LayoutDirection previewLayoutDirection();
|
||||
void setPreviewLayoutDirection(const Qt::LayoutDirection& previewLayoutDirection);
|
||||
@ -220,8 +220,8 @@ signals:
|
||||
void loadFinished();
|
||||
void printedToPDF(QString fileName);
|
||||
|
||||
void getAviableLanguages(QList<QLocale::Language>* languages);
|
||||
void currentDefaulLanguageChanged(QLocale::Language);
|
||||
void getAvailableLanguages(QList<QLocale::Language>* languages);
|
||||
void currentDefaultLanguageChanged(QLocale::Language);
|
||||
QLocale::Language getCurrentDefaultLanguage();
|
||||
|
||||
void externalPaint(const QString& objectName, QPainter* painter, const QStyleOptionGraphicsItem*);
|
||||
|
@ -263,8 +263,8 @@ signals:
|
||||
void loadFinished();
|
||||
void printedToPDF(QString fileName);
|
||||
|
||||
void getAviableLanguages(QList<QLocale::Language>* languages);
|
||||
void currentDefaulLanguageChanged(QLocale::Language);
|
||||
void getAvailableLanguages(QList<QLocale::Language>* languages);
|
||||
void currentDefaultLanguageChanged(QLocale::Language);
|
||||
QLocale::Language getCurrentDefaultLanguage();
|
||||
void externalPaint(const QString& objectName, QPainter* painter, const QStyleOptionGraphicsItem*);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user