Fix for SANKORE-490 and SANKORE-491.

preferencesAboutTextFull
Aleksei Kanash 13 years ago
parent 8c5b96b240
commit 2d102026a7
  1. 2
      src/desktop/UBDesktopAnnotationController.cpp
  2. 5
      src/gui/UBLibraryWidget.cpp

@ -81,7 +81,7 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent)
mTransparentDrawingView->setMouseTracking(true);
mTransparentDrawingView->setAcceptDrops(false);
mTransparentDrawingView->setAcceptDrops(true);
QString backgroundStyle = "QWidget {background-color: rgba(127, 127, 127, 0)}";
mTransparentDrawingView->setStyleSheet(backgroundStyle);

@ -361,15 +361,12 @@ void UBLibraryWidget::dropEvent(QDropEvent *event)
QString filePath;
QString crntPath = urlList.at(i).toString();
#ifdef Q_WS_MACX
filePath = QUrl(urlList.at(i)).toString();
#else
if(crntPath.startsWith("file:") || crntPath.startsWith("/")){
filePath = QUrl(crntPath).toLocalFile();
}else{
filePath = crntPath;
}
#endif
mLibraryController->importItemOnLibrary(filePath);
bDropAccepted = true;
}

Loading…
Cancel
Save