Commit graph

3232 commits

Author SHA1 Message Date
Matthias Fuchs df557df2e0 Return the url of the view instead of the url of the url navigator.
That way if a wrong protocol had been entered the currently watched directory will be returned.
BUG:274890
REVIEW:101580
2011-06-11 00:28:05 +02:00
Peter Penz 8f6045bac7 Fix position of toolbar-menu
CCBUG: 274495
2011-06-10 16:27:39 +02:00
Frank Reininghaus 6d4cfc25d4 Wait longer for the selectionChanged signal
The timeout for the selectionChanged signal is increased in
DolphinViewTest_AllViewModes::verifySelectedItemsCount().
I hope that this will fix a part of the failures seen in
http://my.cdash.org/testDetails.php?test=6350150&build=196639
2011-06-09 14:50:33 +02:00
Frank Reininghaus 91e210ad6d Improve stability of DolphinView tests
1. Fix possible test failure if hidden files are shown initially.
2. Fix possible test failure if a .directory file is created in
the test directory. I think that this fixes the test failure from
http://my.cdash.org/testDetails.php?test=6350151&build=196639
2011-06-09 14:41:53 +02:00
Matthias Fuchs ea6dc3fde7 Keeps the selection after showing/hiding hidden files.
Still only files that are shown will be selected, thus selecting hidden files and then hiding hidden files will deselect those.
BUG:177215
REVIEW:101487
2011-06-02 00:59:56 +02:00
Sebastian Dörner 0a7c5997df Fix problems with commit 8d789f2626
- fix crash when Ctrl-D-ing in the terminal
 - don't respond to window manager actions, only when the dock itself is
   hidden

Refers to commit 8d789f2626
2011-06-01 21:53:44 +01:00
Matthias Fuchs af37efda77 Improves 79ccd0202d by allowing "/" in file names.
Though here "/" is not the ascii char '/' but the "unicode fraction slash" one, thus it is not taken as directory command.
CCBUG:211751
REVIEW:101454
2011-05-31 23:45:31 +02:00
Peter Penz 2fcd3dd788 Fix position of Dolphin menu with multiple-screens setup
BUG: 274495
FIXED-IN: 4.7.0
2011-05-30 16:33:35 +02:00
Dawit Alemayehu f51d29c124 Set the window on the directory lister created in ViewAccessor so that password
management can be handled properly.

REVIEW: 101469
2011-05-29 16:31:48 -04:00
Script Kiddy e0c967a8f0 SVN_SILENT made messages (.desktop file) 2011-05-29 10:08:26 +02:00
Sebastian Trueg 18d8150848 Improved query creation. There is absolutely no point in using a
regular expression in addition to the query created by the query
parser. All it does is majorly slowing down the query execution.

REVIEW: 101462
2011-05-29 09:39:46 +02:00
Matthias Fuchs 3ed09520ad Disallow renaming to names containing '/', names being equal to "." or "..".
BUG:211751
REVIEW:101454
2011-05-28 01:31:45 +02:00
Matthias Fuchs e508685bae DolphinColumnView navigation works more intuitively.
If no item is selected then pressing right moves to a column view with child url, instead of the first index.
BUG:263110
REVIEW:101449
2011-05-28 01:10:37 +02:00
Frank Reininghaus 009535d910 Fix build failure if Nepomuk is not available.
Thanks to Krzysztof Nowicki for the patch!
BUG: 274297
2011-05-28 00:17:17 +02:00
Peter Penz 744cc7a824 Tooltips: Use tooltip-text-color for the filename
Thanks to Jacopo De Simoi for the patch!

CCMAIL: wilderkde@gmail.com
2011-05-28 00:04:24 +02:00
Script Kiddy bac383aa63 SVN_SILENT made messages (.desktop file) 2011-05-27 09:00:13 +02:00
Frank Reininghaus 34fec35b56 Don't try to build dolphinsearchboxtest if Nepomuk isn't found. 2011-05-26 09:03:50 +02:00
Sebastian Dörner 603ec47b8b Don't let hidden terminals prevent unmounting
Previous state: When the terminal is hidden, the cwd is not updated
anymore. If it was on a removable device when hiding, the hidden
terminal might prevent unmounting this device.
This patch fixes that bug by changing the cwd to "/" when hiding the panel.

REVIEW: 101387
BUG: 158264
FIXED-IN: 4.7.0
2011-05-25 22:19:11 +01:00
Alex Merry f192c0d663 Compile with QT_USE_FAST_OPERATOR_PLUS 2011-05-23 19:57:44 +01:00
Montel Laurent de3e167cf9 It compiles fine with "-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS" 2011-05-22 13:04:33 +02:00
Frank Reininghaus be4b787e8e Fix DolphinView regression in 4.6: Keep renamed items visible
Commit 78669f2a57 introduced a regression
in DolphinView which disabled the automatic scrolling after a rename
operation to keep the renamed item visible. This commit reverts a part
of that change to re-enable the feature.
CCBUG: 273600
FIXED-IN: 4.6.4
(cherry picked from commit 54f34a941f)
2011-05-19 14:15:33 +02:00
Script Kiddy 6f802671ff SVN_SILENT made messages (.desktop file) 2011-05-17 10:47:38 +02:00
Andreas Hartmetz 01fc5c9cd8 Fix build: Only compile code using Nepomuk #ifdef HAVE_NEPOMUK.
Actually HAVE_NEPOMUK should be defined here, but it isn't. This seems
to be some bug in the buildsystem.

CCMAIL: peter.penz19@gmail.com
2011-05-11 18:47:44 +02:00
Script Kiddy 3b82962f49 SVN_SILENT made messages (.desktop file) 2011-05-11 09:15:34 +02:00
Script Kiddy 982987f465 SVN_SILENT made messages (.desktop file) 2011-05-09 09:30:57 +02:00
Raphael Kubo da Costa 38bf441922 Use pathOrUrl() instead of path() for application/x-kde-dndextract.
This makes it possible to extract to remote locations or, say, trash:/
when everything is properly set up in Ark's side.

CCMAIL: peter.penz19@gmail.com
(cherry picked from commit 5307f8ee24)
2011-05-01 23:44:58 -03:00
Oswald Buddenhagen 7772f6f804 adapt to INSTALLed permissions 2011-05-01 20:26:46 +02:00
Peter Penz 38cf4f8f43 Use special zoom-icons for the zoom-widget in the statusbar 2011-04-29 20:07:26 +02:00
Peter Penz a2d3ac3ec0 Don't ask twice whether the trash should get emptied
Thanks to Casey Jones for the patch!

BUG: 265785
FIXED-IN: 4.7.0
2011-04-26 16:11:50 +02:00
Andreas Hartmetz b3bf5886b4 Move add_subdirectory(tests) to where Nepomuk has been found.
The tests were using NEPOMUK_FOO_LIBRARIES variables that were, at least
partially, not defined. Didn't link with gold linker.
2011-04-23 16:12:15 +02:00
Peter Penz 371e718ec5 Fix enabled/disabled issue of Search Panel 2011-04-20 22:11:22 +02:00
Peter Penz 27a8c55ec9 Search improvements
Use Query::titleFromQueryUrl() to give a hint what kind of information
is shown to the user.
2011-04-20 21:21:26 +02:00
Peter Penz ae488b1318 Improve usability of Search Panel
If the Search Panel is shown outside the context of the "Find" mode it
will be always enabled and does a global search. Only if the user is in
the "Find" mode and the searching is restricted to the current directory
the Search Panel might get disabled if the current directory is not
indexed. This solves the major usability issue that it was not clear
for the users whether a global or restricted search is done.
2011-04-20 20:09:08 +02:00
Peter Penz f551f73ae6 Center tooltips horizontally in relation to the item
Patch has been written by Aaron J. Seigo.
2011-04-19 18:03:04 +02:00
Peter Penz 5ed647c7de When renaming one item don't replace # by numbers
BUG: 271094
FIXED-IN: 4.7.0
2011-04-16 14:51:19 +02:00
Peter Penz d4be11f205 Assure that the startup-settings are applied immediately 2011-04-15 20:53:13 +02:00
Peter Penz 14bae32f37 Details view: Fix jumping column-widths
If the view has a width where a horizontal scrollbar is required to
show all columns, an endless loop might get triggered that results in a
periodic jumping of the column-widths.

BUG: 270954
FIXED-IN: 4.7.0
2011-04-15 20:38:24 +02:00
Frank Reininghaus c7ef72de55 SVN_SILENT Remove trailing white space. 2011-04-14 13:27:33 +02:00
Frank Reininghaus 6d7e993c26 Improve stability of unit tests when running them with Valgrind
I noticed unexpected unit test failures when running the tests with
Valgrind. The reason was that test execution was slowed down a lot,
such that that TestBase::waitForFinishedPathLoading() did not receive
the view's signal within the default timeout of 2 seconds, and that
this failure was not detected in every test -> the tests failed later
on because not all expected items had been loaded yet.

To fix this, I changed two things:
1. Added an assert in TestBase::waitForFinishedPathLoading() that checks
if the signal has been received. Continuing does not make much sense if
that is not the case.
2. Increased the default timeout to 20 seconds. The reason why there is
a finite timeout at all is that I didn't want to waste too much time on
machines where the file kioslave seems to have problems loading a
directory (I've seen corresponding test logs at cdash.org). However, with
the first change I mentioned above, the waiting time is lost only once
(due to the assert) rather than every time a directory is loaded
-> I think that the timeout increase does not lead to an increased waste
of time on such machines.
2011-04-14 13:10:33 +02:00
Frank Reininghaus e152885d94 Implement a cut/copy/paste unit test for DolphinView. 2011-04-12 21:44:31 +02:00
Peter Penz de077f8477 Let each DolphinMainWindow run in a custom process
A possible crash in one Dolphin window should not result in crashing
other Dolphin windows. Beside this it also prevents issues with
modal dialogs or notifications.

BUG: 269950
BUG: 206053
BUG: 196034
FIXED-IN: 4.7.0
2011-04-12 20:08:08 +02:00
Raphael Kubo da Costa a19e78d75b Fix directory navigation in Dolphin::Terminal.
When navigating in Dolphin it attempts to keep any open Terminal (F4)
in sync by changing the directory in the shell.  It does this by
sending a "^C; cd $DIRECTORY" however shells under FreeBSD treat "^C"
as a literal string and not SIGINT.  Fix this by sending SIGINT to the
shell instead of "^C".

It appears Linux does not exhibit this behaviour.

Patch originally written by David Naylor, from the KDE-FreeBSD team.

CCMAIL: naylor.b.david@gmail.com

(cherry picked from commit 5f78219e18)
2011-04-12 11:18:22 -03:00
Frank Reininghaus 2784a14b76 Add unit test for bug 270437
Verify that the current item and the scroll position of the view do not
change if previews are turned off. Actually, the bug was in
KFilePreviewGenerator, but it's easier to test this here.
2011-04-10 21:27:15 +02:00
Peter Penz 529da98645 Column View: Keep wheel-behavior consistent with other views
Using the wheel in the column view resulted in too big jumps. Keep it
consistent with the details view and icons view.

BUG: 269942
FIXED-IN: 4.7.0
2011-04-10 19:24:02 +02:00
Peter Penz 4263d56b16 Folders Panel: Don't open the properties dialog modal
BUG: 270484
FIXED-IN: 4.7.0
2011-04-10 18:56:08 +02:00
Peter Penz 41d8b21ede DolphinContextMenu: Set the properties action from actionCollection
Patch has been provided by Alex Fiestas at
https://git.reviewboard.kde.org/r/101076/

CCMAIL: alex@eyeos.org
2011-04-10 18:49:55 +02:00
Peter Penz 426aac2eab Readd KFind shortcut for the Dolphin KPart
When the searching has been integrated into Dolphin the "Find File..."
entry had been removed from the Tools menu. Readd it into the Dolphin
KPart so that it is still available for Konqueror.

BUG: 270072
FIXED-IN: 4.7.0
2011-04-10 18:36:24 +02:00
Peter Penz 2baa9ec45a Optimize alignment of toolbar menu
Try to align the toolbar menu within the Dolphin window to
reduce the cases where the sub-menus overlap with the right
screen border.
2011-04-08 19:38:37 +02:00
Frank Reininghaus a9ecea7cd1 Do not reload the DolphinView in the tests' initView() members
Rather than reloading the view after it is initilised, we just wait
until the view emits its finishedPathLoading() signal. This saves some
time when running the tests (at least on my system).
2011-04-06 11:44:01 +02:00
Frederik Schwarzer 33635cd40c Add missing i18n call 2011-04-06 00:36:39 +02:00