KDEUI
kbugreport.cpp
Go to the documentation of this file.
128 QString qwtstr = i18n( "Your email address. If incorrect, use the Configure Email button to change it" );
165 QString qwtstr = i18n( "The application for which you wish to submit a bug report - if incorrect, please use the Report Bug menu item of the correct application" );
194 qwtstr = i18n( "The version of this application - please make sure that no newer version is available before sending a bug report" );
236 const QString sevTexts[5] = { i18n("Critical"), i18n("Grave"), i18nc("normal severity","Normal"), i18n("Wishlist"), i18n("Translation") };
284 QString text = i18n("<qt>To submit a bug report, click on the button below. This will open a web browser "
301 parent->setMinimumHeight( parent->sizeHint().height() + 20 ); // WORKAROUND: prevent "cropped" kcombobox
372 QObject::connect( m_process, SIGNAL(finished(int,QProcess::ExitStatus)), q, SLOT(_k_slotSetFrom()) );
373 m_process->start( QString::fromLatin1("kcmshell4"), QStringList() << QString::fromLatin1("kcm_useraccount") );
437 "<li>introduce a security hole on the system where the affected package is installed</li></ul>\n"
439 "If it does not, please select a lower severity. Thank you.</p>" ),QString(),KStandardGuiItem::cont(),KStandardGuiItem::cancel() ) == KMessageBox::No )
448 "<li>introduce a security hole allowing access to the accounts of users who use the affected package</li></ul>\n"
450 "If it does not, please select a lower severity. Thank you.</p>" ),QString(),KStandardGuiItem::cont(),KStandardGuiItem::cancel() ) == KMessageBox::No )
472 if( !d->submitBugWeb && ( (d->m_lineedit->toPlainText().length()>0) || d->m_subject->isModified() ) )
508 if (severity == QLatin1String("i18n") && KGlobal::locale()->language() != KLocale::defaultLanguage()) {
555 kDebug() << "kbugreport: sendbugmail exit, status " << proc.exitStatus() << " code " << proc.exitCode();
virtual bool atEnd() const
QString i18n(const char *text)
void setButtonGuiItem(ButtonCode id, const KGuiItem &item)
Sets the KGuiItem directly for the button instead of using 3 methods to set the text, tooltip and whatsthis strings.
Definition: kdialog.cpp:699
Definition: kmessagebox.h:73
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
void setModal(bool modal)
void addWidget(QWidget *widget, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
virtual void closeEvent(QCloseEvent *e)
Detects when a dialog is being closed from the window manager controls.
Definition: kbugreport.cpp:470
static int warningYesNo(QWidget *parent, const QString &text, const QString &caption=QString(), const KGuiItem &buttonYes=KStandardGuiItem::yes(), const KGuiItem &buttonNo=KStandardGuiItem::no(), const QString &dontAskAgainName=QString(), Options options=Options(Notify|Dangerous))
Display a "warning" dialog.
Definition: kmessagebox.cpp:564
void setOpenExternalLinks(bool open)
Show Cancel-button. (this button reject()s the dialog; result set to QDialog::Rejected) ...
Definition: kdialog.h:144
QString label(StandardShortcut id)
Returns a localized label for user-visible display.
Definition: kstandardshortcut.cpp:267
static void information(QWidget *parent, const QString &text, const QString &caption=QString(), const QString &dontShowAgainName=QString(), Options options=Notify)
Display an "Information" dialog.
Definition: kmessagebox.cpp:960
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
void setMessageBody(const QString &messageBody)
Sets the message body of the bug report.
Definition: kbugreport.cpp:318
const char * name(StandardAction id)
This will return the internal name of a given standard action.
Definition: kstandardaction.cpp:223
static QDebug kError(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
const KAboutData * aboutData() const
void addSpacing(int size)
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
#define KDE_VERSION_STRING
virtual void setCaption(const QString &caption)
Make a KDE compliant caption.
Definition: kdialog.cpp:469
QString i18nc(const char *ctxt, const char *text)
int size() const
void setBuddy(QWidget *buddy)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
QString fromUtf8(const char *str, int size)
void ignore()
virtual void addItem(QLayoutItem *item)
void setObjectName(const QString &name)
bool isEmpty() const
KComponentData activeComponent()
void setText(const QString &)
QString language() const
void setButtons(ButtonCodes buttonMask)
Creates (or recreates) the button box and all the buttons in it.
Definition: kdialog.cpp:206
void setButtonIcon(ButtonCode id, const KIcon &icon)
Sets the icon of any button.
Definition: kdialog.cpp:742
virtual void accept()
static int questionYesNo(QWidget *parent, const QString &text, const QString &caption=QString(), const KGuiItem &buttonYes=KStandardGuiItem::yes(), const KGuiItem &buttonNo=KStandardGuiItem::no(), const QString &dontAskAgainName=QString(), Options options=Notify)
Display a simple "question" dialog.
Definition: kmessagebox.cpp:353
Show Ok button. (this button accept()s the dialog; result set to QDialog::Accepted) ...
Definition: kdialog.h:141
bool waitForStarted(int msecs)
sizeHint
KBugReport(QWidget *parent=0L, bool modal=true, const KAboutData *aboutData=0L)
Creates a bug-report dialog.
Definition: kbugreport.cpp:89
KLocale * locale()
void setChecked(bool)
void setTextInteractionFlags(QFlags< Qt::TextInteractionFlag > flags)
QString & replace(int position, int n, QChar after)
void setWhatsThis(const QString &)
QString text() const
"Configure email" has been clicked - this calls kcmshell4 System/email
Definition: kbugreport.cpp:487
QWidget(QWidget *parent, QFlags< Qt::WindowType > f)
static QString findExe(const QString &appname, const QString &pathstr=QString(), SearchOptions options=NoSearchOptions)
bool isValid() const
const KComponentData & mainComponent()
Standard title widget with a white background and round border.
Definition: ktitlewidget.h:61
int length() const
void setMinimumHeight(int minh)
QStringList split(const QString &sep, const QString &str, bool allowEmptyEntries)
QString left(int n) const
qint64 write(const char *data, qint64 maxSize)
QString fromLatin1(const char *str, int size)
void setPixmap(const QPixmap &pixmap, ImageAlignment alignment=ImageRight)
Definition: ktitlewidget.cpp:231
void setButtonText(ButtonCode id, const QString &text)
Sets the text of any button.
Definition: kdialog.cpp:719
void setText(const QString &text, Qt::Alignment alignment=Qt::AlignLeft|Qt::AlignVCenter)
Definition: ktitlewidget.cpp:201
static void invokeBrowser(const QString &url, const QByteArray &startup_id=QByteArray())
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
void closeWriteChannel()
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
virtual void closeEvent(QCloseEvent *e)
Detects when a dialog is being closed from the window manager controls.
Definition: kdialog.cpp:1001
QProcess::ExitStatus exitStatus() const
int exitCode() const
void setWordWrap(bool on)
void start(const QString &program, const QStringList &arguments, QFlags< QIODevice::OpenModeFlag > mode)
static void error(QWidget *parent, const QString &text, const QString &caption=QString(), Options options=Notify)
Display an "Error" dialog.
Definition: kmessagebox.cpp:818
static QString defaultLanguage()
void addLayout(QLayout *layout, int stretch)
qint64 readLine(char *data, qint64 maxSize)
bool waitForFinished(int msecs)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.