--- a/designer-Qt4Qt5/designer.pro.orig	2018-05-21 08:09:47.055147000 +0300
+++ b/designer-Qt4Qt5/designer.pro	2018-05-21 08:10:45.768229400 +0300
@@ -2,7 +2,21 @@
 
 
 TEMPLATE = lib
-TARGET = qscintillaplugin
+CONFIG(debug, debug|release) {
+    mac: {
+        TARGET = qscintillaplugin_debug
+    } else {
+            LIBS += -L$$PWD/../Qt4Qt5/debug
+        win32: {
+            TARGET = qscintillaplugind
+        } else {
+            TARGET = qscintillaplugin
+        }
+    }
+} else {
+    TARGET = qscintillaplugin
+    LIBS += -L$$PWD/../Qt4Qt5/release
+}
 
 CONFIG += plugin qscintilla2
 
