Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 587600 Details for
Bug 826397
QString Segfaults on appending string at line 274 in the QString Library
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
header file
node.h (text/x-chdr), 3.05 KB, created by
lukewolf101010
on 2012-05-30 06:34:49 UTC
(
hide
)
Description:
header file
Filename:
MIME Type:
Creator:
lukewolf101010
Created:
2012-05-30 06:34:49 UTC
Size:
3.05 KB
patch
obsolete
>#ifndef NODE_H >#define NODE_H >#include <QStack> >#include <QString> >#include <QTextStream> >#include <QFile> >#include <QDir> >#include <QQueue> >#include <QObject> >namespace HBM >{ >class node : public QObject >{ > Q_OBJECT >public: > /* > * The Constructor automatically reads in a node of Data > * which is accessible via the return functions, There should > * Be no need to set anything directly. > */ > node(); > > ~node(); > // Checks whether there is any more nodes to generate > static bool atEnd(); > > /* > * Returns data from the current node to be used by the GUI or anything > * else using this class, Since I'm going to be using QML for the Interface > * These functions need to be Q_INVOKABLE in order to access their data from > * the ui.qml file > */ > > Q_INVOKABLE virtual QString returnTitle(); > Q_INVOKABLE virtual int returnNodeDepth(); > Q_INVOKABLE virtual QString returnText(); > Q_INVOKABLE virtual int returnNodeNumber(); > Q_INVOKABLE virtual int returnParentNumber(); > Q_INVOKABLE virtual int returnCount(); > Q_INVOKABLE virtual bool isMasterNode(); > Q_INVOKABLE virtual QStack<int> returnChildrenNumbers(); > Q_INVOKABLE virtual QList<node *> returnChildren(); > Q_INVOKABLE virtual QList<node*> returnMasterNodes(); > >private: > bool ismasterNode; > > /* > * Opens files from the Stringlist > */ > > virtual bool openFile(); > > /* > * The checkDepthStack function checks the depth as you go along > * making sure that the attachment tree is appropriately set up > */ > > virtual void checkDepthStack(); > > //bool so that it can be checked for failure > virtual bool readline(); > virtual bool readNode(); > //a count of the number of objects, used to assign a nodenumber > static int count; > //a stack used to insure that node numbers are associated correctly > static QStack<int> nodeOrder; > static int nodeDepth; > static QStack<node*> nodeAddress; > // a temporary string buffer used to filter input > QString temp; > // the filestream, > static QFile read; > > /* > * Treepad .hjt are to be stored in the ./Resource/ folder > * this data is static other than the filename as the filename > * is relative to the object and will be important in the future for > * categorization purposes > */ > > static QString resourcePath; > static QDir sources; > static QStringList files; > static QString filename; > > // contains all of the data of the node > struct nodeData > { > nodeData(); > QString title; > int nodeDepth; > QString text; > node* address; > int nodeNumber; > }; > // data that is relevant to the current node > nodeData current; > > /* > * Previous node's data that is global to the class so > * so that the node tree may reference it for attachment > * mostly nodeDepth and nodeNumber that are important here > * the rest of it really isn't of concern > */ > > static nodeData previous; > // > node* parent_node; > static QList<node*> masterNodes; >}; >} >#endif // NODE_H
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 826397
:
587599
|
587600
|
587601
|
587908
|
587909
|
587914
|
587916
|
587917
|
587918
|
587922