Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
9199f5d4
Kaydet (Commit)
9199f5d4
authored
Haz 06, 2018
tarafından
Katarina Behrens
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Basic KDE5 native file picker opens now
Change-Id: I3bb5d45f3337fbe26d80acb1fac7a433de904546
üst
6b8c90a3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
15 deletions
+14
-15
KDE5FilePicker.cxx
vcl/unx/kde5/KDE5FilePicker.cxx
+1
-13
KDE5FilePicker2.cxx
vcl/unx/kde5/KDE5FilePicker2.cxx
+11
-1
KDE5SalInstance.cxx
vcl/unx/kde5/KDE5SalInstance.cxx
+2
-1
No files found.
vcl/unx/kde5/KDE5FilePicker.cxx
Dosyayı görüntüle @
9199f5d4
...
...
@@ -48,19 +48,7 @@ KDE5FilePicker::~KDE5FilePicker()
//void KDE5FilePicker::setTitle(const QString& title) { _dialog->setWindowTitle(title); }
/*bool KDE5FilePicker::execute()
{
if (!_filters.isEmpty())
_dialog->setNameFilters(_filters);
if (!_currentFilter.isEmpty())
_dialog->selectNameFilter(_currentFilter);
_dialog->show();
//block and wait for user input
return _dialog->exec() == QFileDialog::Accepted;
}
void KDE5FilePicker::setMultiSelectionMode(bool multiSelect)
/*void KDE5FilePicker::setMultiSelectionMode(bool multiSelect)
{
_dialog->setFileMode(multiSelect ? QFileDialog::ExistingFiles : QFileDialog::ExistingFile);
}
...
...
vcl/unx/kde5/KDE5FilePicker2.cxx
Dosyayı görüntüle @
9199f5d4
...
...
@@ -119,7 +119,17 @@ void SAL_CALL KDE5FilePicker::removeFilePickerListener(const uno::Reference<XFil
void
SAL_CALL
KDE5FilePicker
::
setTitle
(
const
OUString
&
title
)
{}
sal_Int16
SAL_CALL
KDE5FilePicker
::
execute
()
{
return
0
;
}
sal_Int16
SAL_CALL
KDE5FilePicker
::
execute
()
{
if
(
!
_filters
.
isEmpty
())
_dialog
->
setNameFilters
(
_filters
);
if
(
!
_currentFilter
.
isEmpty
())
_dialog
->
selectNameFilter
(
_currentFilter
);
_dialog
->
show
();
//block and wait for user input
return
_dialog
->
exec
()
==
QFileDialog
::
Accepted
;
}
void
SAL_CALL
KDE5FilePicker
::
setMultiSelectionMode
(
sal_Bool
multiSelect
)
{}
...
...
vcl/unx/kde5/KDE5SalInstance.cxx
Dosyayı görüntüle @
9199f5d4
...
...
@@ -26,6 +26,7 @@
#include <osl/process.h>
#include "KDE5FilePicker.hxx"
#include "KDE5SalData.hxx"
#include "KDE5SalInstance.hxx"
#include "KDE5SalFrame.hxx"
...
...
@@ -51,7 +52,7 @@ SalFrame* KDE5SalInstance::CreateFrame(SalFrame* pParent, SalFrameStyleFlags nSt
uno
::
Reference
<
ui
::
dialogs
::
XFilePicker2
>
KDE5SalInstance
::
createFilePicker
(
const
uno
::
Reference
<
uno
::
XComponentContext
>&
xMSF
)
{
return
SalInstance
::
createFilePicker
(
xMSF
);
return
uno
::
Reference
<
ui
::
dialogs
::
XFilePicker2
>
(
new
KDE5FilePicker
(
xMSF
)
);
}
bool
KDE5SalInstance
::
IsMainThread
()
const
{
return
qApp
->
thread
()
==
QThread
::
currentThread
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment