From d41ec17fe72dbcf1b5277ab7b33b6374a9fb9e60 Mon Sep 17 00:00:00 2001 From: in1tiate <32779090+in1tiate@users.noreply.github.com> Date: Mon, 18 Jan 2021 14:10:45 -0600 Subject: Add a new "char_list" QTreeWidget that allows for categorizing characters (#399) * initial commit * use a "category" value instead * add filtering and taken indicator * hide serverlist header * set the items to disabled in place of the [X] text Co-authored-by: stonedDiscord <10584181+stonedDiscord@users.noreply.github.com> --- src/text_file_functions.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/text_file_functions.cpp') diff --git a/src/text_file_functions.cpp b/src/text_file_functions.cpp index e79411a2..43a72ecc 100644 --- a/src/text_file_functions.cpp +++ b/src/text_file_functions.cpp @@ -667,6 +667,12 @@ QString AOApplication::get_blips(QString p_char) return f_result; } +QString AOApplication::get_category(QString p_char) +{ + QString f_result = read_char_ini(p_char, "category", "Options"); + return f_result; +} + QString AOApplication::get_chat(QString p_char) { if (p_char == "default") -- cgit