diff --git a/YACReaderLibrary/YACReaderLibrary.pro b/YACReaderLibrary/YACReaderLibrary.pro index 668189f6..be62fe6d 100644 --- a/YACReaderLibrary/YACReaderLibrary.pro +++ b/YACReaderLibrary/YACReaderLibrary.pro @@ -28,8 +28,8 @@ LIBS += -lpoppler-qt4 INCLUDEPATH += ../dependencies/poppler/include/qt4 } -#QMAKE_CXXFLAGS_RELEASE += /MP /Ob2 /Oi /Ot /GT /GL -#QMAKE_LFLAGS_RELEASE += /LTCG +QMAKE_CXXFLAGS_RELEASE += /MP /Ob2 /Oi /Ot /GT /GL +QMAKE_LFLAGS_RELEASE += /LTCG CONFIG -= embed_manifest_exe } diff --git a/common/pictureflow.cpp b/common/pictureflow.cpp index c029a69a..d92f4299 100644 --- a/common/pictureflow.cpp +++ b/common/pictureflow.cpp @@ -1385,14 +1385,9 @@ void PictureFlow::resortCovers(QList newOrder) QVector marksNew; - SlideInfo centerSlideNew; - QVector leftSlidesNew; - QVector rightSlidesNew; - QVector slidesInfo; slidesInfo << d->state->leftSlides << d->state->centerSlide << d->state->rightSlides; QVector slidesInfoNew; - int numSlides = 1 + d->state->leftSlides.length() + d->state->rightSlides.length(); int order = 0; foreach(int index, newOrder) diff --git a/custom_widgets/yacreader_table_view.cpp b/custom_widgets/yacreader_table_view.cpp index 58f25f78..9ace5aef 100644 --- a/custom_widgets/yacreader_table_view.cpp +++ b/custom_widgets/yacreader_table_view.cpp @@ -160,7 +160,7 @@ void YACReaderTableView::performDrag() drag->setMimeData(model()->mimeData(selectionModel()->selectedRows())); drag->setPixmap(QPixmap(":/images/openInYACReader.png")); //TODO add better image - Qt::DropAction dropAction = drag->exec(Qt::CopyAction | Qt::MoveAction, Qt::CopyAction); + /*Qt::DropAction dropAction =*/ drag->exec(Qt::CopyAction | Qt::MoveAction, Qt::CopyAction); } void YACReaderTableView::dragEnterEvent(QDragEnterEvent *event) diff --git a/shortcuts_management/edit_shortcut_item_delegate.cpp b/shortcuts_management/edit_shortcut_item_delegate.cpp index 4c10b11a..14c8e906 100644 --- a/shortcuts_management/edit_shortcut_item_delegate.cpp +++ b/shortcuts_management/edit_shortcut_item_delegate.cpp @@ -80,7 +80,7 @@ void KeySequenceLineEdit::resizeEvent(QResizeEvent * e) QSize szClear = clearButton->sizeHint(); //int frameWidth = style()->pixelMetric(QStyle::PM_DefaultFrameWidth); int leftMargin = style()->pixelMetric(QStyle::PM_LayoutLeftMargin); - int topMargin = style()->pixelMetric(QStyle::PM_LayoutTopMargin); + //int topMargin = style()->pixelMetric(QStyle::PM_LayoutTopMargin); clearButton->move(0 + leftMargin,(e->size().height()-19)/2); //16 is the icon height+1blank pixel acceptButton->move( leftMargin + szClear.width(),(e->size().height()-19)/2);