summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libs/7zip/7zip.pro3
-rw-r--r--src/libs/installer/adminauthorization_x11.cpp6
-rw-r--r--src/libs/installer/elevatedexecuteoperation.cpp11
-rw-r--r--src/libs/installer/installer.pro3
-rw-r--r--src/libs/installer/packagemanagercore.cpp48
-rw-r--r--src/libs/kdtools/sysinfo_x11.cpp9
-rw-r--r--src/sdk/installerbase.cpp4
-rw-r--r--src/sdk/sdk.pro3
-rw-r--r--src/sdk/translations/ja.ts8
9 files changed, 55 insertions, 40 deletions
diff --git a/src/libs/7zip/7zip.pro b/src/libs/7zip/7zip.pro
index 70a51c068..17e64df8f 100644
--- a/src/libs/7zip/7zip.pro
+++ b/src/libs/7zip/7zip.pro
@@ -9,3 +9,6 @@ DESTDIR = $$IFW_LIB_PATH
include(7zip.pri)
win32:include($$7ZIP_BASE/win.pri) #7zip
unix:include($$7ZIP_BASE/unix.pri) #p7zip
+
+target.path = $$[QT_INSTALL_LIBS]
+INSTALLS += target
diff --git a/src/libs/installer/adminauthorization_x11.cpp b/src/libs/installer/adminauthorization_x11.cpp
index 7c546c0f2..673c96a4b 100644
--- a/src/libs/installer/adminauthorization_x11.cpp
+++ b/src/libs/installer/adminauthorization_x11.cpp
@@ -49,9 +49,13 @@
#include <linux/limits.h>
#include <pty.h>
#else
+#ifdef Q_OS_FREEBSD
+#include <libutil.h>
+#include <signal.h>
+#else
#include <util.h>
#endif
-
+#endif
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/wait.h>
diff --git a/src/libs/installer/elevatedexecuteoperation.cpp b/src/libs/installer/elevatedexecuteoperation.cpp
index 3f3cdbb2a..901bf7f9e 100644
--- a/src/libs/installer/elevatedexecuteoperation.cpp
+++ b/src/libs/installer/elevatedexecuteoperation.cpp
@@ -170,16 +170,7 @@ bool ElevatedExecuteOperation::Private::run(const QStringList &arguments)
}
//readProcessOutput should only called from this current Thread -> Qt::DirectConnection
QObject::connect(process, SIGNAL(readyRead()), q, SLOT(readProcessOutput()), Qt::DirectConnection);
-#ifdef Q_OS_WIN
- if (args.count() == 1) {
- process->setNativeArguments(args.front());
- qDebug() << "ElevatedExecuteOperation setNativeArguments to start:" << args.front();
- process->start(QString(), QStringList());
- } else
-#endif
- {
- process->start(args.front(), args.mid(1));
- }
+ process->start(args.front(), args.mid(1));
qDebug() << args.front() << "started, arguments:" << QStringList(args.mid(1)).join(QLatin1String(" "));
bool success = false;
diff --git a/src/libs/installer/installer.pro b/src/libs/installer/installer.pro
index 9447108ee..d641ff1fc 100644
--- a/src/libs/installer/installer.pro
+++ b/src/libs/installer/installer.pro
@@ -227,3 +227,6 @@ win32 {
win32-g++*:LIBS += -lmpr -luuid
win32-g++*:QMAKE_CXXFLAGS += -Wno-missing-field-initializers
}
+
+target.path = $$[QT_INSTALL_LIBS]
+INSTALLS += target
diff --git a/src/libs/installer/packagemanagercore.cpp b/src/libs/installer/packagemanagercore.cpp
index 492920efc..731171f61 100644
--- a/src/libs/installer/packagemanagercore.cpp
+++ b/src/libs/installer/packagemanagercore.cpp
@@ -1426,34 +1426,28 @@ void PackageManagerCore::appendRootComponent(Component *component)
}
/*!
- \class PackageManagerCore::ComponentType
- \inmodule QtInstallerFramework
- \brief The ComponentType class describes a component list.
-
- This class is used with the components() function to describe what type of \c Component
- list it should return.
-
- \list
- \li \c Root returns a list of root components.
-
- \li \c Descendants returns a list of all descendant components.
-
- \note In updater mode the list is empty, because component updates cannot have children.
-
- \li \c Dependencies returns a list of all available dependencies when run as updater.
-
- \note When running as installer, package manager, or uninstaller, this will always
- result in an empty list.
-
- \li \c Replacements returns a list of all available replacement components relevant to the
- run mode.
-
- \li \c AllNoReplacements returns a list of available components, including root, descendant,
+ \enum PackageManagerCore::ComponentType
+ \brief This enum holds the type of the component list to be returned:
+
+ \value Root
+ Returns a list of root components.
+ \value Descendants
+ Returns a list of all descendant components. In updater mode the
+ list is empty, because component updates cannot have children.
+ \value Dependencies
+ Returns a list of all available dependencies when run as updater.
+ When running as installer, package manager, or uninstaller, this
+ will always result in an empty list.
+ \value Replacements
+ Returns a list of all available replacement components relevant to
+ the run mode.
+ \value AllNoReplacements
+ Returns a list of available components, including root, descendant,
and dependency components relevant to the run mode.
-
- \li \c All returns a list of all available components, including root, descendant,
- dependency, and replacement components relevant to the run mode.
- \endlist
+ \value All
+ Returns a list of all available components, including root,
+ descendant, dependency, and replacement components relevant to the
+ run mode.
*/
/*!
diff --git a/src/libs/kdtools/sysinfo_x11.cpp b/src/libs/kdtools/sysinfo_x11.cpp
index 6fddf895f..9a7909f24 100644
--- a/src/libs/kdtools/sysinfo_x11.cpp
+++ b/src/libs/kdtools/sysinfo_x11.cpp
@@ -36,6 +36,11 @@
#include <sys/utsname.h>
#include <sys/statvfs.h>
+#ifdef Q_OS_FREEBSD
+#include <sys/types.h>
+#include <sys/sysctl.h>
+#endif
+
#include <QtCore/QFile>
#include <QtCore/QTextStream>
#include <QtCore/QDir>
@@ -62,7 +67,11 @@ quint64 installedMemory()
#else
quint64 physmem;
size_t len = sizeof physmem;
+#ifdef Q_OS_FREEBSD
+ static int mib[2] = { CTL_HW, HW_PHYSMEM };
+#else
static int mib[2] = { CTL_HW, HW_MEMSIZE };
+#endif
sysctl(mib, 2, &physmem, &len, 0, 0);
return quint64(physmem);
#endif
diff --git a/src/sdk/installerbase.cpp b/src/sdk/installerbase.cpp
index 80fc7b8b3..8a009769d 100644
--- a/src/sdk/installerbase.cpp
+++ b/src/sdk/installerbase.cpp
@@ -88,8 +88,8 @@ int InstallerBase::run()
// and check the running processes.
if (runCheck.isRunning(RunOnceChecker::ConditionFlag::ProcessList)) {
QInstaller::MessageBoxHandler::information(0, QLatin1String("AlreadyRunning"),
- QString::fromLatin1("Waiting for %1").arg(qAppName()),
- QString::fromLatin1("Another %1 instance is already running. Wait "
+ tr("Waiting for %1").arg(qAppName()),
+ tr("Another %1 instance is already running. Wait "
"until it finishes, close it, or restart your system.").arg(qAppName()));
return EXIT_FAILURE;
}
diff --git a/src/sdk/sdk.pro b/src/sdk/sdk.pro
index 76bd4c5e2..fd69b4529 100644
--- a/src/sdk/sdk.pro
+++ b/src/sdk/sdk.pro
@@ -142,3 +142,6 @@ win32 {
}
macx:include(../../no_app_bundle.pri)
+
+target.path = $$[QT_INSTALL_BINS]
+INSTALLS += target
diff --git a/src/sdk/translations/ja.ts b/src/sdk/translations/ja.ts
index facd4c0a7..d994bcd72 100644
--- a/src/sdk/translations/ja.ts
+++ b/src/sdk/translations/ja.ts
@@ -2099,6 +2099,10 @@ Do you want to continue?</source>
<source>Password</source>
<translation>パスワード</translation>
</message>
+ <message>
+ <source>Proxy Credentials</source>
+ <translation>プロキシ認証</translation>
+ </message>
</context>
<context>
<name>QInstaller::ServerAuthenticationDialog</name>
@@ -2402,6 +2406,10 @@ Do you want to continue?</source>
<source>Cannot create output file for writing: %1</source>
<translation>書き込み用に出力ファイルを作成できませんでした: %1</translation>
</message>
+ <message>
+ <source>Could not convert path: %1.</source>
+ <translation>パスを変換できませんでした: %1</translation>
+ </message>
</context>
<context>
<name>ExtractCallbackImpl</name>