Changeset View
Changeset View
Standalone View
Standalone View
src/kexiutils/utils.cpp
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | |||||
55 | #include <QFontDatabase> | 55 | #include <QFontDatabase> | ||
56 | #include <QTextCodec> | 56 | #include <QTextCodec> | ||
57 | #include <QDebug> | 57 | #include <QDebug> | ||
58 | #include <QFileDialog> | 58 | #include <QFileDialog> | ||
59 | #include <QDesktopServices> | 59 | #include <QDesktopServices> | ||
60 | #include <QStyleHints> | 60 | #include <QStyleHints> | ||
61 | #include <QLineEdit> | 61 | #include <QLineEdit> | ||
62 | 62 | | |||
63 | #ifndef KEXI_MOBILE | ||||
63 | #include <KRun> | 64 | #include <KRun> | ||
64 | #include <KToolInvocation> | 65 | #include <KToolInvocation> | ||
66 | #endif | ||||
65 | #include <KIconEffect> | 67 | #include <KIconEffect> | ||
66 | #include <KColorScheme> | 68 | #include <KColorScheme> | ||
67 | #include <KLocalizedString> | 69 | #include <KLocalizedString> | ||
68 | #include <KConfigGroup> | 70 | #include <KConfigGroup> | ||
69 | #include <KAboutData> | 71 | #include <KAboutData> | ||
70 | 72 | | |||
71 | #if HAVE_LANGINFO_H | 73 | #if HAVE_LANGINFO_H | ||
72 | #include <langinfo.h> | 74 | #include <langinfo.h> | ||
▲ Show 20 Lines • Show All 641 Lines • ▼ Show 20 Line(s) | 715 | { | |||
714 | if (m_enabled && watched == parent() && event->type() == QEvent::Paint) { | 716 | if (m_enabled && watched == parent() && event->type() == QEvent::Paint) { | ||
715 | return true; | 717 | return true; | ||
716 | } | 718 | } | ||
717 | return false; | 719 | return false; | ||
718 | } | 720 | } | ||
719 | 721 | | |||
720 | tristate KexiUtils::openHyperLink(const QUrl &url, QWidget *parent, const OpenHyperlinkOptions &options) | 722 | tristate KexiUtils::openHyperLink(const QUrl &url, QWidget *parent, const OpenHyperlinkOptions &options) | ||
721 | { | 723 | { | ||
724 | #ifndef KEXI_MOBILE | ||||
722 | if (url.isLocalFile()) { | 725 | if (url.isLocalFile()) { | ||
723 | QFileInfo fileInfo(url.toLocalFile()); | 726 | QFileInfo fileInfo(url.toLocalFile()); | ||
724 | if (!fileInfo.exists()) { | 727 | if (!fileInfo.exists()) { | ||
725 | KMessageBox::sorry(parent, xi18nc("@info", "The file or directory <filename>%1</filename> does not exist.", fileInfo.absoluteFilePath())); | 728 | KMessageBox::sorry(parent, xi18nc("@info", "The file or directory <filename>%1</filename> does not exist.", fileInfo.absoluteFilePath())); | ||
726 | return false; | 729 | return false; | ||
727 | } | 730 | } | ||
728 | } | 731 | } | ||
729 | 732 | | |||
Show All 36 Lines | 768 | switch(options.tool) { | |||
766 | case OpenHyperlinkOptions::DefaultHyperlinkTool: | 769 | case OpenHyperlinkOptions::DefaultHyperlinkTool: | ||
767 | return KRun::runUrl(url, type, parent); | 770 | return KRun::runUrl(url, type, parent); | ||
768 | case OpenHyperlinkOptions::BrowserHyperlinkTool: | 771 | case OpenHyperlinkOptions::BrowserHyperlinkTool: | ||
769 | return QDesktopServices::openUrl(url); | 772 | return QDesktopServices::openUrl(url); | ||
770 | case OpenHyperlinkOptions::MailerHyperlinkTool: | 773 | case OpenHyperlinkOptions::MailerHyperlinkTool: | ||
771 | return QDesktopServices::openUrl(url); | 774 | return QDesktopServices::openUrl(url); | ||
772 | default:; | 775 | default:; | ||
773 | } | 776 | } | ||
777 | #endif | ||||
774 | return false; | 778 | return false; | ||
775 | } | 779 | } | ||
776 | 780 | | |||
777 | // ---- | 781 | // ---- | ||
778 | 782 | | |||
779 | KexiDBDebugTreeWidget::KexiDBDebugTreeWidget(QWidget *parent) | 783 | KexiDBDebugTreeWidget::KexiDBDebugTreeWidget(QWidget *parent) | ||
780 | : QTreeWidget(parent) | 784 | : QTreeWidget(parent) | ||
781 | { | 785 | { | ||
▲ Show 20 Lines • Show All 264 Lines • Show Last 20 Lines |