Commit graph

4751 commits

Author SHA1 Message Date
Emmanuel Pescosta 7a7e8ee819 undo should be disabled by default 2015-01-28 15:04:32 +01:00
Emmanuel Pescosta 7e03c99ebb use DolphinMainWindow::showErrorMessage instead of DolphinMainWindow::slotPanelErrorMessage because the implementation is exactly the same 2015-01-28 14:54:47 +01:00
Emmanuel Pescosta 9cdbd1eb09 Removed old (<= 4.6) settings upgrading code (jpegrotatedthumbnail to jpegthumbnail) from PreviewsSettingsPage 2015-01-24 23:11:02 +01:00
Emmanuel Pescosta 617e1b378b Port ConfigurePreviewPluginDialog away from KLibrary, KIO::NetAccess::del and ThumbCreatorV2 2015-01-24 23:07:30 +01:00
Gregor Mi 088b516057 Add disk usage statistics menu to SpaceInfo widget in the status bar:
the menu has the following entries:

1. Filelight location
2. Filelight device
3. Filelight
4. KDiskFree

KService is used to find the applications and display proper
translations.
KRun is used to run the applications.

REVIEW: 121478
CHANGELOG: Add a menu on left-click on the SpaceInfo widget in the status bar to show Disk Usage statistics.
2015-01-12 16:18:50 +01:00
Emmanuel Pescosta 39b77e9861 Always connect the drop job result with DolphinView::slotPasteJobResult
to receive the error message in case of an error also when the destUrl
is not equal to the current url in the view.

CCMAIL: faure@kde.org
2015-01-05 12:50:53 +01:00
David Faure 7bd5bec219 Dolphin: port from KonqOperations::doDrop to the new KIO::DropJob
REVIEW: 121678
2015-01-05 09:07:10 +01:00
Emmanuel Pescosta 119f7a3fce Fix for crash which was introduced by commit
c2a0d3e889666539669562a6c1f7a080a0f29b11
(use QCollator instead of KStringHandler)

REVIEW: 121817
BUG: 342316
2015-01-04 21:45:30 +01:00
Montel Laurent 48788f71cf Fix docbook 2015-01-01 12:55:16 +01:00
David Faure 2a561317c6 Remove unused libkonq includes 2014-12-25 10:16:12 +01:00
David Faure 7c695cd709 Fix compilation with Qt 5.2 and 5.3; QSignalSpy can't take a function pointer yet 2014-12-24 08:49:47 +01:00
Gregor Mi 70dc3d06d9 Statusbar SpaceInfo widget: set visible by default
REVIEW: 121474
2014-12-18 22:18:17 +01:00
Emmanuel Pescosta d19d94e60a Ported tests away from KRandomSequence, QTest::kWaitForSignal and KTempDir.
All tests passed!
2014-12-18 14:56:46 +01:00
Emmanuel Pescosta 95220eebae Port from KStringHandler naturalCompare to QCollator compare.
Make use of the QCollator instance (m_collator) in nameRoleGroups instead of using QString::localeAwareCompare (uses QCollator internally)

We don't need the m_caseSensitivity anymore, because the QCollator instance also holds this information.

(This patch doesn't make use of QCollatorSortKey)

Reviewed by Kai

REVIEW: 121480
2014-12-17 17:48:10 +01:00
Emmanuel Pescosta b5fc036999 use save() instead of writeConfig() 2014-12-14 19:11:39 +01:00
Emmanuel Pescosta 8d7c1a6678 Port KInputDialog to QInputDialog 2014-12-14 19:05:53 +01:00
Emmanuel Pescosta 6202dbcf4a Remove K_EXPORT_PLUGIN 2014-12-14 18:58:57 +01:00
Emmanuel Pescosta 20f6234005 port from KTabWidget to QTabWidget 2014-12-14 18:42:54 +01:00
Emmanuel Pescosta 192f00e32f get rid of KFileItemActionPlugin 2014-12-14 18:39:08 +01:00
Emmanuel Pescosta 5e91504d4b port away from VBox/HBox 2014-12-14 18:32:48 +01:00
Emmanuel Pescosta 68df2a725e show warnings about deprecated declarations 2014-12-14 17:47:58 +01:00
Emmanuel Pescosta a07d63d419 port away from deprecated KFileItem(mode_t mode, mode_t permissions, const QUrl &url, bool delayedMimeTypes = false); 2014-12-14 17:46:58 +01:00
Arjun AK 895a7c941b Fix Terminal-View navigation sync issue
The URL needs to be constructed from 'QUrl::fromLocalFile()' instead of
a QString so that the scheme is set properly.

REVIEW: 121409
BUG: 341678
2014-12-10 23:13:23 +05:30
Arjun AK 1d7b3b8df5 Fix KUrl -> QUrl porting error
Trailing slashes should be removed before calling QUrl::filename(),
else it will return an empty string.

BUG: 341411
REVIEW: 121293
2014-12-01 17:31:39 +05:30
Montel Laurent de7eefeb7e Fix desktop name 2014-11-20 13:36:24 +01:00
Luca Beltrame 3e5f78a1cc Fix build after review 121078
RR 121078 fixed exports, but did not include the necessary
generate_export_header in the CMakeLists.txt.

Please, if you are testing for Windows, ensure you also test your build
in Linux (and with a clean build dir). The fact that kde-baseapps for
KF5 is still unreleased does not mean it should not be buildable.

CCMAIL: andriusmao@gmail.com
2014-11-20 09:28:11 +01:00
Andrius da Costa Ribas e1789b559e Fix Exports.
REVIEW: 121078
2014-11-20 01:06:58 -02:00
Lukáš Tinkl c79eb81a34 set the dolphin part's translation domain
see RR 121141 for details
2014-11-19 00:54:51 +01:00
Emmanuel Pescosta 17c7e2f469 Fixed build error which was introduced by commit 7ed7cd97d084364d8ee61b35f5ffa3630c5277a4
CCMAIL: bhush94@gmail.com
2014-11-11 08:02:29 +01:00
Emmanuel Pescosta 424d20e435 KIntSpinBox to QSpinBox 2014-11-10 09:12:33 +01:00
Emmanuel Pescosta 02c0835148 KLineEdit to QLineEdit 2014-11-10 09:08:04 +01:00
Emmanuel Pescosta d0f0f1f2e2 make use of initializer lists 2014-11-10 08:45:38 +01:00
Emmanuel Pescosta 82f19ab470 get rid of unused warnings 2014-11-10 08:42:37 +01:00
Frank Reininghaus cc299154f4 Fix more unit test failures
This commit is analogous to 5cf8941ac789e47da70fe466033f45df9af1a3fa,
but the problem existed since the frameworks port was started and was
not obvious because the QString -> KUrl/QUrl port was done implicitly
when calling KIO::rename(oldPath, newPath, KIO::HideProgressInfo).

REVIEW: 120941
2014-11-04 22:42:45 +01:00
Frank Reininghaus 66a1b33e5a Fix unit test failures
These were caused by 86e31084ced8ba4875a6128f91ec2ca3d6df7a31 - note
that the correct replacement for KUrl(fileName) is
QUrl::fromLocalFile(fileName), and that calling the const function
urlA.adjusted(QUrl::RemoveFilename) only has an effect if the return
value is taken.
2014-11-04 22:42:37 +01:00
Lukáš Tinkl a069d24d4b fix default tab prev/next shortcuts
take into accound the whole list, not just the first shortcut
2014-11-04 00:00:04 +01:00
Lukáš Tinkl 037d5db85b Q_DECL_OVERRIDE 2014-11-03 23:52:18 +01:00
Lukáš Tinkl b96def1856 use QUrl::fromLocalFile() on devices
fixes being unable to access eg. removable drives
2014-11-03 18:25:19 +01:00
Lukáš Tinkl 7a3310ce73 fix initializer list 2014-11-03 16:16:52 +01:00
David Faure 30175dcbde KonqOperations: KIO::pasteMimeData -> KIO::paste, update signal and simplify dolphin accordingly. 2014-11-02 17:17:24 +01:00
David Faure 3e14a97a0f Many cleanups in KonqOperations 2014-11-02 17:03:18 +01:00
David Faure 98880e4430 Update status of paste action once directory has finished loading.
Since 6a6cf1ab328e7600f0c2b375e43a1e3bd236a5a7, it depends on rootItem()
which is not available until the dirlister emits it.
2014-11-02 15:34:30 +01:00
David Faure 8b306b67bf Port from KonqOperations::doPaste to new job KIO::paste
Remove KonqOperations::doPaste.
2014-11-02 15:20:41 +01:00
Arjun AK e256daa569 Enable KRun's script execution prompt.
This commit enables KRun's script/desktop file execution prompts,
which is shown when the user launches an executable script or a
desktop file. This is done so as to prevent the user from accidentaly
executing programs. A checkbox to enable or disable the prompts is also
being added to the preferences window

REVIEW: 120171
BUG: 275405
2014-11-01 16:41:29 +05:30
Montel Laurent 422dc4e921 Port to QDialog 2014-10-28 21:49:53 +01:00
Montel Laurent a76cb4c67f Port to QDebug*. KVBox-- 2014-10-27 22:30:02 +01:00
Lukáš Tinkl 5ed011357c don't save view_properties in ~/.local/share/dolphindolphin
looks like writableLocation() already includes the app name
2014-10-26 19:02:03 +01:00
Frank Reininghaus fa988586bc Merge remote-tracking branch 'origin/master' into frameworks
Conflicts:
	dolphin/src/panels/terminal/terminalpanel.cpp
	dolphin/src/panels/terminal/terminalpanel.h
2014-10-24 18:49:05 +02:00
Frank Reininghaus 1f02d15f7e Merge remote-tracking branch 'origin/KDE/4.14' 2014-10-24 18:45:28 +02:00
Frank Reininghaus d9700c4d43 Make the view/Terminal Panel synchronization less error-prone
The previous solution could cause problems if the user navigates to a
different URL in one view, and then activates another split view very
quickly: the new active view might be switched to the same URL as the
first view, which is unwanted.

To fix this problem, we record a history of "cd" commands that Dolphin
sends to the Terminal Panel in a queue. If a currentDirectoryChanged
signal is received, and the new terminal directory is "dir", this patch
does the following:

1.  If the queue is empty, change the view URL to "dir".
2.  Otherwise, take the queue's head, and check if it is equal to
    "dir". If that is the case, ignore the signal and return.
3.  Go back to step 1.

This ensures that every currentDirectoryChange signal that is caused by
a "cd" that was sent from Dolphin to the terminal is ignored.

BUG: 339009
BUG: 314038
REVIEW: 120768
2014-10-24 18:14:08 +02:00