Skip to content

Commit

Permalink
copy option
Browse files Browse the repository at this point in the history
  • Loading branch information
GrimIrani committed Jan 15, 2023
1 parent 0583dbe commit fea40aa
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
14 changes: 7 additions & 7 deletions src/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 \
Expand Down Expand Up @@ -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)
Expand Down
9 changes: 9 additions & 0 deletions src/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Compile
```
make
```
# Usage
```
./copycat "this will be booom!!!"
when you PASTE will shows: `this will be booom!!!`
```
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
2 changes: 1 addition & 1 deletion src/src.pro
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fea40aa

Please sign in to comment.