Krita Source Code Documentation
Loading...
Searching...
No Matches
KisKBugReportPrivate Class Reference

Public Member Functions

void _k_updateUrl ()
 
int currentSeverity ()
 
 KisKBugReportPrivate (KisKBugReport *q)
 

Public Attributes

QString appname
 
QString lastError
 
QLabel * lblApplicationName {nullptr}
 
KAboutData m_aboutData
 
QGroupBox * m_bgSeverity {nullptr}
 
QTextEdit * m_lineedit {nullptr}
 
QProcess * m_process {nullptr}
 
QString m_strVersion
 
QLineEdit * m_subject {nullptr}
 
QLabel * m_version {nullptr}
 
QString os
 
KisKBugReportq {nullptr}
 
QList< QRadioButton * > severityButtons
 
QUrl url
 

Detailed Description

Definition at line 48 of file kbugreport.cpp.

Constructor & Destructor Documentation

◆ KisKBugReportPrivate()

KisKBugReportPrivate::KisKBugReportPrivate ( KisKBugReport * q)
inline

Definition at line 51 of file kbugreport.cpp.

51: q(q), m_aboutData(KAboutData::applicationData()) {}
KisKBugReport * q

Member Function Documentation

◆ _k_updateUrl()

void KisKBugReportPrivate::_k_updateUrl ( )

Definition at line 218 of file kbugreport.cpp.

219{
220 url = QUrl(QStringLiteral("https://bugs.kde.org/enter_bug.cgi"));
221 QUrlQuery query;
222 query.addQueryItem(QStringLiteral("format"), QLatin1String("guided")); // use the guided form
223
224 // the string format is product/component, where component is optional
225 QStringList list = QStringList() << appname;
226 query.addQueryItem(QStringLiteral("product"), list[0]);
227 if (list.size() == 2) {
228 query.addQueryItem(QStringLiteral("component"), list[1]);
229 }
230
231 query.addQueryItem(QStringLiteral("version"), m_strVersion);
232
233 // TODO: guess and fill OS(sys_os) and Platform(rep_platform) fields
234#ifdef Q_OS_WIN
235 query.addQueryItem(QStringLiteral("op_sys"), QStringLiteral("MS Windows"));
236 query.addQueryItem(QStringLiteral("rep_platform"), QStringLiteral("MS Windows"));
237#endif
238
239 url.setQuery(query);
240}
QList< QString > QStringList

References appname, m_strVersion, and url.

◆ currentSeverity()

int KisKBugReportPrivate::currentSeverity ( )
inline

Definition at line 71 of file kbugreport.cpp.

72 {
73 for (int i = 0; i < severityButtons.count(); i++)
74 if (severityButtons[i]->isChecked()) {
75 return i;
76 }
77 return -1;
78 }
QList< QRadioButton * > severityButtons

References severityButtons.

Member Data Documentation

◆ appname

QString KisKBugReportPrivate::appname

Definition at line 67 of file kbugreport.cpp.

◆ lastError

QString KisKBugReportPrivate::lastError

Definition at line 66 of file kbugreport.cpp.

◆ lblApplicationName

QLabel* KisKBugReportPrivate::lblApplicationName {nullptr}

Definition at line 65 of file kbugreport.cpp.

65{nullptr};

◆ m_aboutData

KAboutData KisKBugReportPrivate::m_aboutData

Definition at line 57 of file kbugreport.cpp.

◆ m_bgSeverity

QGroupBox* KisKBugReportPrivate::m_bgSeverity {nullptr}

Definition at line 63 of file kbugreport.cpp.

63{nullptr};

◆ m_lineedit

QTextEdit* KisKBugReportPrivate::m_lineedit {nullptr}

Definition at line 59 of file kbugreport.cpp.

59{nullptr};

◆ m_process

QProcess* KisKBugReportPrivate::m_process {nullptr}

Definition at line 56 of file kbugreport.cpp.

56{nullptr};

◆ m_strVersion

QString KisKBugReportPrivate::m_strVersion

Definition at line 62 of file kbugreport.cpp.

◆ m_subject

QLineEdit* KisKBugReportPrivate::m_subject {nullptr}

Definition at line 60 of file kbugreport.cpp.

60{nullptr};

◆ m_version

QLabel* KisKBugReportPrivate::m_version {nullptr}

Definition at line 61 of file kbugreport.cpp.

61{nullptr};

◆ os

QString KisKBugReportPrivate::os

Definition at line 68 of file kbugreport.cpp.

◆ q

KisKBugReport* KisKBugReportPrivate::q {nullptr}

Definition at line 55 of file kbugreport.cpp.

55{nullptr};

◆ severityButtons

QList<QRadioButton *> KisKBugReportPrivate::severityButtons

Definition at line 70 of file kbugreport.cpp.

◆ url

QUrl KisKBugReportPrivate::url

Definition at line 69 of file kbugreport.cpp.


The documentation for this class was generated from the following file: