mirror of
https://git.freebsd.org/ports.git
synced 2025-07-15 16:29:15 -04:00
USE_KDE4=kdehier component has been deprecated, new components added: baloo - Baloo core libraries baloo-widgets - Baloo widgets library kfilemetadata - KDE library for extracting file metadata New ports: graphics/kqtquickcharts - QtQuick plugin to render interactive charts misc/artikulate - Pronunciation trainer for KDE (not usable currently, links to both GStreamer 1.x and 0.10.x via dependencies) sysutils/baloo[-widgets] - KDE framework for searching and managing user metadata sysutils/kfilemetadata - Library for extracting file metadata l10n ports: - Farsi (Persian) and Indonesian translations has been readded - Vietnamese didn't pass threshold for inclusion into release astro/kstars: - switch dependency from math/eigen2 to math/eigen3 - add PYKDE option for updating supernovae data deskutils/kdepim4: - update dependencies: add libkgapi and baloo, remove now needless clucene, link-grammar, strigi - add patch to fix build with gcc42 - update COMMENT and description for all KDE PIM ports devel/ruby-krossruby: - remove BROKEN, it builds with ruby 2.x now editors/kate: - add patch to disable memory-hungry build of the kate tests [1] graphics/okular: - add dependency on graphics/libkscreen math/cantor: - add optional dependency on lang/luajit for LuaJIT backend - fix gfortran detection [2] misc/kdehier4: - adapt to new pkg world. Now the purpose of kdehier4 only to link some stuff between KDE4_PREFIX and LOCALBASE. science/kalzium: - switch dependency from math/eigen2 to math/eigen3 - add dependence on science/chemical-mime-data x11-themes/kdeartwork4 - switch dependency from math/eigen2 to math/eigen3 among other changes: - drop deprecated USE_KDE4=kdehier - drop @dirrm from plist - clean up pkg-descr - convert to options helpers - other portlint fixes The area51 repository features commits by alonso, rakuco and myself. PR: 187150 [1] Reported by: pe.freethread@live.com Patch by: Tobias Berner <tcberner@gmail.com> PR: 180674 [2] Reported by: torsten.eichstaedt@web.de PR: 194316 Exp-run: antoine
29 lines
1.4 KiB
C++
29 lines
1.4 KiB
C++
--- shell/shell.cpp
|
|
+++ shell/shell.cpp
|
|
@@ -163,7 +163,7 @@ bool Shell::openDocument( const QString& url, const QString &serializedOptions )
|
|
KParts::ReadWritePart* const part = m_tabs[0].part;
|
|
|
|
// Return false if we can't open new tabs and the only part is occupied
|
|
- if ( !dynamic_cast<Okular::ViewerInterface*>(part)->openNewFilesInTabs()
|
|
+ if ( !qobject_cast<Okular::ViewerInterface*>(part)->openNewFilesInTabs()
|
|
&& !part->url().isEmpty()
|
|
&& !ShellUtils::unique(serializedOptions))
|
|
{
|
|
@@ -181,7 +181,7 @@ bool Shell::canOpenDocs( int numDocs, int desktop )
|
|
return false;
|
|
|
|
KParts::ReadWritePart* const part = m_tabs[0].part;
|
|
- const bool allowTabs = dynamic_cast<Okular::ViewerInterface*>(part)->openNewFilesInTabs();
|
|
+ const bool allowTabs = qobject_cast<Okular::ViewerInterface*>(part)->openNewFilesInTabs();
|
|
|
|
if( !allowTabs && (numDocs > 1 || !part->url().isEmpty()) )
|
|
return false;
|
|
@@ -208,7 +208,7 @@ void Shell::openUrl( const KUrl & url, const QString &serializedOptions )
|
|
}
|
|
else
|
|
{
|
|
- if( dynamic_cast<Okular::ViewerInterface *>(activePart)->openNewFilesInTabs() )
|
|
+ if( qobject_cast<Okular::ViewerInterface *>(activePart)->openNewFilesInTabs() )
|
|
{
|
|
openNewTab( url, serializedOptions );
|
|
}
|