Skip to content

Commit 5864818

Browse files
committed
Replaced depercated function and added qmake.
1 parent 4714d02 commit 5864818

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

Qt/Console/Console.pro

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
######################################################################
2+
# Automatically generated by qmake (3.1) Sun Nov 27 18:11:43 2022
3+
######################################################################
4+
5+
TEMPLATE = app
6+
TARGET = Console
7+
INCLUDEPATH += .
8+
9+
# You can make your code fail to compile if you use deprecated APIs.
10+
# In order to do so, uncomment the following line.
11+
# Please consult the documentation of the deprecated API in order to know
12+
# how to port your code away from it.
13+
# You can also select to disable deprecated APIs only up to a certain version of Qt.
14+
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
15+
16+
# Input
17+
SOURCES += main.cpp
18+
# RESOURCES += resources.qrc

Qt/Console/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ int main(void)
4646
a.prepend("Music ");
4747

4848
out << "Original mesasge: " << a << "\n";
49-
out << "The a string has " << a.count()
49+
out << "The a string has " << a.length()
5050
<< " characters" << "\n";
5151

5252
// toUpper() and toLower()

0 commit comments

Comments
 (0)