logic: Codeview Snippet order

Sorting the Snippets in. the Codeview. Active Token first then declaration,
filename and extension
This commit is contained in:
Andreas Stallinger
2014-10-24 13:37:06 +02:00
parent a1b874c520
commit 0a4c65d198
17 changed files with 157 additions and 42 deletions
+3 -3
View File
@@ -15,10 +15,10 @@ class TokenLocationFile;
class QtCodeFile : public QWidget
{
public:
QtCodeFile(const std::string& fileName, QWidget *parent = 0);
QtCodeFile(const std::string& filePath, QWidget *parent = 0);
virtual ~QtCodeFile();
const std::string& getFileName() const;
std::string getFileName() const;
void addCodeSnippet(
uint startLineNumber,
@@ -32,7 +32,7 @@ public:
private:
std::vector<std::shared_ptr<QtCodeSnippet> > m_snippets;
const std::string m_fileName;
const std::string m_filePath;
bool m_showMaximizeButton;
};