-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[kde] stub-export.cpp: Use KPropertiesDialog instead of creating a di…
…alog manually. Using KPropertiesDialog causes KDE to find all of the plugins itself, so it'll load XAttrView. I tried using QPluginLoader, which mostly worked, but it crashed when trying to add itself to the KPropertiesDialog, since we were using a plain old QDialog. Creating a KPropertiesDialog instead makes the QPluginLoader (and manual RomDataView creation) unnecessary, since KDE does it for us. NOTE: Removing other tabs causes random segfaults, so we can't remove tabs from other plugins. Instead, set the first ROM Properties tab as the current tab. For setting the initial URL, we use QUrl::fromUserInput() to convert the specified filename to a QUrl. For Qt versions older than 5.4, we have to handle the current working directory manually.
- Loading branch information
1 parent
9d5fb09
commit 462e220
Showing
1 changed file
with
53 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters