diff --git a/src/Makefile b/src/Makefile index 65d696b..baf444e 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,5 +1,5 @@ ############################################################################# -# Makefile for building: test +# Makefile for building: copycat # Generated by qmake (3.1) (Qt 5.15.8) # Project: src.pro # Template: app @@ -36,8 +36,8 @@ DEL_DIR = rmdir MOVE = mv -f TAR = tar -cf COMPRESS = gzip -9f -DISTNAME = test1.0.0 -DISTDIR = /home/grimirani/Project/copycat-catcopy/src/.tmp/test1.0.0 +DISTNAME = copycat1.0.0 +DISTDIR = /home/grimirani/Project/copycat-catcopy/src/.tmp/copycat1.0.0 LINK = g++ LFLAGS = -Wl,-O1 -pipe -O2 -flto=2 -fno-fat-lto-objects -fuse-linker-plugin -fPIC LIBS = $(SUBLIBS) /usr/lib/libQt5Widgets.so /usr/lib/libQt5Gui.so /usr/lib/libQt5Core.so -lGL -lpthread @@ -274,15 +274,15 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \ /usr/lib/qt/mkspecs/features/yacc.prf \ /usr/lib/qt/mkspecs/features/lex.prf \ src.pro main.cpp -QMAKE_TARGET = test +QMAKE_TARGET = copycat DESTDIR = -TARGET = test +TARGET = copycat first: all ####### Build rules -test: $(OBJECTS) +copycat: $(OBJECTS) $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) Makefile: src.pro /usr/lib/qt/mkspecs/linux-g++/qmake.conf /usr/lib/qt/mkspecs/features/spec_pre.prf \ @@ -732,7 +732,7 @@ qmake: FORCE qmake_all: FORCE -all: Makefile test +all: Makefile copycat dist: distdir FORCE (cd `dirname $(DISTDIR)` && $(TAR) $(DISTNAME).tar $(DISTNAME) && $(COMPRESS) $(DISTNAME).tar) && $(MOVE) `dirname $(DISTDIR)`/$(DISTNAME).tar.gz . && $(DEL_FILE) -r $(DISTDIR) diff --git a/src/README.md b/src/README.md new file mode 100644 index 0000000..5ec2028 --- /dev/null +++ b/src/README.md @@ -0,0 +1,9 @@ +# Compile +``` +make +``` +# Usage +``` +./copycat "this will be booom!!!" +when you PASTE will shows: `this will be booom!!!` +``` diff --git a/src/main.cpp b/src/main.cpp index 0935341..6306bb3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -11,6 +11,6 @@ int main(int argc, char *argv[]){ QApplication app(argc, argv); QClipboard *clipboard = QGuiApplication::clipboard(); QString originalText = clipboard->text(); - clipboard->setText("test"); + clipboard->setText(argv[1]); return app.exec(); } diff --git a/src/src.pro b/src/src.pro index ecd638e..17936d7 100644 --- a/src/src.pro +++ b/src/src.pro @@ -4,7 +4,7 @@ QT += widgets TEMPLATE = app -TARGET = test +TARGET = copycat INCLUDEPATH += . # You can make your code fail to compile if you use deprecated APIs.